Skip to content

Commit

Permalink
Merge pull request #87 from BAOZOU98/master
Browse files Browse the repository at this point in the history
Update loghelper.py
  • Loading branch information
Womsxd committed Sep 23, 2023
2 parents 42dfa56 + 4ea5847 commit bc76d07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion loghelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@
level=logging.INFO,
format='%(asctime)s %(levelname)s %(message)s',
datefmt='%Y-%m-%dT%H:%M:%S')
log = logger = logging
log = logging

# 获取httpx的日志记录器,并将其级别设置为CRITICAL,让日志不再输出httpx的相关日志
httpx_log = logging.getLogger("httpx")
httpx_log.setLevel(logging.CRITICAL)

0 comments on commit bc76d07

Please sign in to comment.