diff options
author | Frederick Muriuki Muriithi | 2023-04-21 10:27:59 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-04-21 10:27:59 +0300 |
commit | 993420e616e143684deb1c11565b6a8286cde37f (patch) | |
tree | f90610f69e6803fbe815cda1c2628362c1c67716 /gn3/loggers.py | |
parent | 2f6f54e215d7618ab9efa4ed17e09c633db07eab (diff) | |
download | genenetwork3-993420e616e143684deb1c11565b6a8286cde37f.tar.gz |
logging: Set LOG LEVEL on root logger to enable logs
Diffstat (limited to 'gn3/loggers.py')
-rw-r--r-- | gn3/loggers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/loggers.py b/gn3/loggers.py index a74ae7e..5e52a9f 100644 --- a/gn3/loggers.py +++ b/gn3/loggers.py @@ -14,8 +14,8 @@ def setup_app_handlers(app): """Setup the logging handlers for the application `app`.""" # ========== Setup handlers ========== stderr_handler = StreamHandler(stream=sys.stderr) - stderr_handler.setLevel(loglevel(app)) app.logger.addHandler(stderr_handler) # ========== END: Setup handlers ========== root_logger = logging.getLogger() root_logger.addHandler(stderr_handler) + root_logger.setLevel(loglevel(app)) |