From 31300e20d7021f537e26a9ddec31773c773a96ec Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 3 Jun 2018 12:51:57 +0200 Subject: [PATCH] Fix logging --- app.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index aab54f9..ebc775a 100644 --- a/app.py +++ b/app.py @@ -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)