From ddc61f4e1348155b6fa71412e871d5f529352849 Mon Sep 17 00:00:00 2001 From: Adam Kariv Date: Sat, 18 Nov 2023 16:19:54 +0200 Subject: [PATCH] Debug auth --- server.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index f66e52d..2f20e0f 100644 --- a/server.py +++ b/server.py @@ -10,10 +10,11 @@ import logging import sys gunicorn_error_logger = logging.getLogger('gunicorn.error') + app.logger.handlers.extend(gunicorn_error_logger.handlers) - dgp_auth_logger = logging.getLogger('dgp-oauth2') - dgp_auth.logger.handlers.extend(logging.StreamHandler(stream=sys.stdout)) - dgp_auth_logger.setLevel(logging.DEBUG) - app.logger.handlers.extend(dgp_auth_logger.handlers) app.logger.setLevel(logging.DEBUG) app.logger.info('SERVER STARTING') + + dgp_auth_logger = logging.getLogger('dgp-oauth2') + dgp_auth_logger.setLevel(logging.DEBUG) + dgp_auth_logger.handlers.extend(gunicorn_error_logger.handlers)