From 1f24f4f9b1b5121f43465d9732d70b1836fb983c Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Thu, 23 Apr 2020 20:03:56 -0700 Subject: [PATCH] Fix logger default log levels --- amanuensis/log/setup.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/amanuensis/log/setup.py b/amanuensis/log/setup.py index bd58115..6c7d24d 100644 --- a/amanuensis/log/setup.py +++ b/amanuensis/log/setup.py @@ -36,7 +36,10 @@ def init_logging(verbose: bool, log_filename: str): logger = logging.getLogger("amanuensis") if log_filename: logger.addHandler(get_file_handler(log_filename)) + logger.setLevel(logging.DEBUG) elif verbose: logger.addHandler(detailed_console_handler) + logger.setLevel(logging.DEBUG) else: logger.addHandler(basic_console_handler) + logger.setLevel(logging.INFO)