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
3
verbs.py
3
verbs.py
|
@ -1,3 +1,4 @@
|
|||
import os
|
||||
import logging
|
||||
import logging.config
|
||||
|
||||
|
@ -5,5 +6,7 @@ from app import app as application
|
|||
|
||||
from endpoints.verbs import verbs
|
||||
|
||||
if os.environ.get('DEBUGLOG') == 'true':
|
||||
logging.config.fileConfig('conf/logging_debug.conf', disable_existing_loggers=False)
|
||||
|
||||
application.register_blueprint(verbs, url_prefix='/c1')
|
||||
|
|
Reference in a new issue