From 993420e616e143684deb1c11565b6a8286cde37f Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 21 Apr 2023 10:27:59 +0300 Subject: logging: Set LOG LEVEL on root logger to enable logs --- gn3/loggers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3