bugfixes
This commit is contained in:
1 parent
37488118a6
commit
6f4ad7890b
1 file changed
+2
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user