mirror of
https://github.com/evilhero/mylar
synced 2025-02-21 21:46:54 +00:00
Config module requires integer for log_level
This commit is contained in:
parent
a13a112f6d
commit
6912487570
1 changed files with 2 additions and 2 deletions
|
@ -102,9 +102,9 @@ def initLogger(console=False, log_dir=False, init=False, verbose=False):
|
|||
if init is True:
|
||||
logger.setLevel(logging.DEBUG if verbose else logging.INFO)
|
||||
else:
|
||||
if mylar.CONFIG.LOG_LEVEL == '1':
|
||||
if mylar.CONFIG.LOG_LEVEL == 1:
|
||||
logger.setLevel(logging.DEBUG if verbose else logging.WARN)
|
||||
elif mylar.CONFIG.LOG_LEVEL == '2':
|
||||
elif mylar.CONFIG.LOG_LEVEL == 2:
|
||||
logger.setLevel(logging.DEBUG if verbose else logging.ERROR)
|
||||
else:
|
||||
logger.setLevel(logging.DEBUG if verbose else logging.INFO)
|
||||
|
|
Loading…
Reference in a new issue