From 5cf80ec5dc70178674097129671ea0284ceac797 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Thu, 29 Aug 2024 09:07:14 -0700 Subject: [PATCH] try putting default log handler back in place to get logs streaming to github job output --- notifications_utils/logging.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notifications_utils/logging.py b/notifications_utils/logging.py index 445f42529..4b8f22b15 100644 --- a/notifications_utils/logging.py +++ b/notifications_utils/logging.py @@ -29,13 +29,13 @@ def init_app(app): loglevel = logging.getLevelName(app.config["NOTIFY_LOG_LEVEL"]) loggers = [ app.logger, - logging.getLogger("utils"), - logging.getLogger("notifications_python_client"), - logging.getLogger("werkzeug"), + # logging.getLogger("utils"), + # logging.getLogger("notifications_python_client"), + # logging.getLogger("werkzeug"), ] for logger_instance, handler in product(loggers, handlers): logger_instance.addHandler(handler) - logger_instance.setLevel(loglevel) + logger_instance.setLevel(logging.DEBUG) warning_loggers = [logging.getLogger("boto3"), logging.getLogger("s3transfer")] for logger_instance, handler in product(warning_loggers, handlers): logger_instance.addHandler(handler)