mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Refactor utility function
This commit is contained in:
parent
3ea570cadf
commit
14588e6dec
@ -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
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user