Fix logging
This commit is contained in:
parent
526725fc24
commit
31300e20d7
1 changed files with 4 additions and 6 deletions
10
app.py
10
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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue