Skip to content

Commit 0bccb4b

Browse files
authored
Update rthk.py
1 parent 73fdef8 commit 0bccb4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

code/rthk.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,14 @@
2626
from feedgen.feed import FeedGenerator
2727
from urllib.parse import urlparse
2828
from requests_cache import CachedResponse
29+
import logging
2930

3031
setattr(CachedResponse, "lazy", False) # https://github.com/jawah/niquests/issues/241
3132

33+
# 設置日誌
34+
logging.basicConfig(level=logging.INFO)
35+
logger = logging.getLogger(_name_)
36+
3237
# ------------------------------
3338
# 初始設定:檢查環境並顯示提示
3439
def initial_setup():

0 commit comments

Comments
 (0)