Refactor utility function

This commit is contained in:
allegroai 2020-02-18 11:25:29 +02:00
parent 3ea570cadf
commit 14588e6dec
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
""" Debugging module """
from .timer import Timer
from .log import get_logger, get_null_logger, TqdmLog, add_options as add_log_options, \
apply_args as parse_log_args, add_rotating_file_handler, add_time_rotating_file_handler
apply_logging_args as parse_log_args, add_rotating_file_handler, add_time_rotating_file_handler

View File

@ -99,7 +99,7 @@ def add_options(parser):
'--log-level', '-l', default=level, help='Log level (default is %s)' % level)
def apply_args(args):
def apply_logging_args(args):
""" Apply logging args from an argparse.ArgumentParser parsed args """
global default_level
default_level = logging.getLevelName(args.log_level.upper())