From 14588e6dec694bf1062a00109099e5aa3a1d652c Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Tue, 18 Feb 2020 11:25:29 +0200 Subject: [PATCH] Refactor utility function --- trains/debugging/__init__.py | 2 +- trains/debugging/log.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trains/debugging/__init__.py b/trains/debugging/__init__.py index fca7ba2f..553b8b45 100644 --- a/trains/debugging/__init__.py +++ b/trains/debugging/__init__.py @@ -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 diff --git a/trains/debugging/log.py b/trains/debugging/log.py index 619c769f..b084c475 100644 --- a/trains/debugging/log.py +++ b/trains/debugging/log.py @@ -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())