Fix logging

This commit is contained in:
Thomas Sileo 2018-06-03 12:51:57 +02:00
parent 526725fc24
commit 31300e20d7

10
app.py
View file

@ -75,15 +75,13 @@ app.config.update(
)
csrf = CSRFProtect(app)
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
# Hook up Flask logging with gunicorn
# gunicorn_logger = logging.getLogger('gunicorn.error')
# root_logger = logging.getLogger()
# root_logger.handlers = gunicorn_logger.handlers
# root_logger.setLevel(gunicorn_logger.level)
gunicorn_logger = logging.getLogger('gunicorn.error')
root_logger = logging.getLogger()
root_logger.handlers = gunicorn_logger.handlers
root_logger.setLevel(gunicorn_logger.level)
SIG_AUTH = HTTPSigAuth(ID+'#main-key', KEY.privkey)