Improve logging
This commit is contained in:
parent
694511121c
commit
cc900a2b4c
3 changed files with 12 additions and 1 deletions
6
app.py
6
app.py
|
@ -57,6 +57,12 @@ from utils.webfinger import get_actor_url
|
|||
app = Flask(__name__)
|
||||
app.secret_key = get_secret_key('flask')
|
||||
|
||||
# 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)
|
||||
|
||||
JWT_SECRET = get_secret_key('jwt')
|
||||
JWT = JSONWebSignatureSerializer(JWT_SECRET)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue