Add DEBUGLOG flag for enabling full debug logs in all gunicorn components
Fixes #625
This commit is contained in:
parent
e80fcc1b28
commit
e467cda72d
3 changed files with 13 additions and 0 deletions
6
web.py
6
web.py
|
@ -1,3 +1,6 @@
|
|||
import os
|
||||
import logging.config
|
||||
|
||||
from app import app as application
|
||||
|
||||
from endpoints.api import api_bp
|
||||
|
@ -9,6 +12,9 @@ from endpoints.githubtrigger import githubtrigger
|
|||
from endpoints.gitlabtrigger import gitlabtrigger
|
||||
from endpoints.bitbuckettrigger import bitbuckettrigger
|
||||
|
||||
if os.environ.get('DEBUGLOG') == 'true':
|
||||
logging.config.fileConfig('conf/logging_debug.conf', disable_existing_loggers=False)
|
||||
|
||||
application.register_blueprint(web)
|
||||
application.register_blueprint(githubtrigger, url_prefix='/oauth2')
|
||||
application.register_blueprint(gitlabtrigger, url_prefix='/oauth2')
|
||||
|
|
Reference in a new issue