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 0ffdb1f commit f0af1ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
app.run()
else:
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)
Expand Down

0 comments on commit f0af1ec

Please sign in to comment.