Skip to content

Commit

Permalink
Debug auth
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Nov 18, 2023
1 parent f0af1ec commit ddc61f4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit ddc61f4

Please sign in to comment.