From 2d80fed2a8a3e334f910832e9f5c03c56c7d586a Mon Sep 17 00:00:00 2001 From: Dario Borreguero Rincon Date: Wed, 16 Oct 2024 09:07:23 +0200 Subject: [PATCH] #11 fixes last broken commit --- src/sysdiagnose/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sysdiagnose/main.py b/src/sysdiagnose/main.py index a82c7db..76818e6 100644 --- a/src/sysdiagnose/main.py +++ b/src/sysdiagnose/main.py @@ -184,7 +184,7 @@ def main(): # Handle console logging log_level = args.log.upper() - logger.addHandler(get_console_logger(log_level)) + logger.addHandler(get_console_handler(log_level)) logger2file = None for case_id in case_ids: @@ -194,7 +194,7 @@ def main(): folder = sd.config.get_case_parsed_data_folder(case_id) # https://stackoverflow.com/questions/13839554/how-to-change-filehandle-with-python-logging-on-the-fly-with-different-classes-a if logger2file is None: - logger2file = get_json_logger(os.path.join(folder, filename)) + logger2file = get_json_handler(os.path.join(folder, filename)) logger.addHandler(logger2file) else: logger2file.close()