Skip to content

Commit

Permalink
#11 fixes last broken commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-br committed Oct 16, 2024
1 parent bd3e150 commit 2d80fed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sysdiagnose/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
Expand Down

0 comments on commit 2d80fed

Please sign in to comment.