This commit is contained in:
parent
24315330d8
commit
002f8b0842
2
main.py
2
main.py
|
@ -11,7 +11,7 @@ import logging
|
||||||
|
|
||||||
# 设置日志配置
|
# 设置日志配置
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=logging.DEBUG,
|
level=os.environ.get("MHYY_LOGLEVEL") if os.environ.get("MHYY_LOGLEVEL") else logging.INFO,
|
||||||
format="%(asctime)s [%(levelname)s]: %(message)s",
|
format="%(asctime)s [%(levelname)s]: %(message)s",
|
||||||
datefmt="%Y-%m-%d %H:%M:%S",
|
datefmt="%Y-%m-%d %H:%M:%S",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user