forked from goodboy/tractor
1
0
Fork 0

Don't create formatter if no log level set

asyncgen_closing_fix
Tyler Goodlet 2018-07-10 17:28:29 -04:00
parent 9f5555ec21
commit 6163d4e9ea
1 changed files with 4 additions and 2 deletions

View File

@ -67,7 +67,9 @@ def get_console_log(level: str = None, name: str = None) -> logging.Logger:
''' '''
log = get_logger(name) # our root logger log = get_logger(name) # our root logger
if level: if not level:
return
log.setLevel(level.upper() if not isinstance(level, int) else level) log.setLevel(level.upper() if not isinstance(level, int) else level)
if not any( if not any(