This commit is contained in:
Soulter
2023-09-02 10:05:06 +08:00
parent 37488118a6
commit 6f4ad7890b
+2 -1
View File
@@ -64,10 +64,11 @@ def log(
"""
日志记录函数
"""
_set_level_code = LEVEL_INFO
_set_level_code = level_codes[LEVEL_INFO]
if 'LOG_LEVEL' in os.environ and os.environ['LOG_LEVEL'] in level_codes:
_set_level_code = level_codes[os.environ['LOG_LEVEL']]
if level in level_codes and level_codes[level] < _set_level_code:
return