Skip to content

Commit

Permalink
Merge pull request #5 from luhipi/enhancement/logging-levels
Browse files Browse the repository at this point in the history
set file logging level to DEBUG
  • Loading branch information
Andreas-Piter authored Aug 22, 2024
2 parents ce57767 + 78c0312 commit 649bcfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sarvey/sarvey_mti.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,12 @@ def main(iargs=None):
os.mkdir(logpath)
file_handler = logging.FileHandler(filename=join(logpath, log_filename))
file_handler.setFormatter(log_format)
file_logging_level = logging.getLevelName("DEBUG")
file_handler.setLevel(file_logging_level)
logger.addHandler(file_handler)

logging_level = logging.getLevelName(config.general.logging_level)
logger.setLevel(logging_level)
console_handler.setLevel(logging_level)

config.general.output_path = os.path.abspath(join(args.workdir, config.general.output_path))
if config.consistency_check.mask_p1_file is not None:
Expand Down

0 comments on commit 649bcfd

Please sign in to comment.