Skip to content

Commit

Permalink
提高httpx日志等级
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Oct 20, 2023
1 parent dab2369 commit 4d7c836
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bilibili.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ def start_server():
log_path = "./log/log-" + common.get_bj_time(1) + ".txt"
Configure_logger(log_path)

# 获取 httpx 库的日志记录器
httpx_logger = logging.getLogger("httpx")
# 设置 httpx 日志记录器的级别为 WARNING
httpx_logger.setLevel(logging.WARNING)

# 最新入场的用户名列表
last_username_list = [""]

Expand Down

0 comments on commit 4d7c836

Please sign in to comment.