diff --git a/gunicorn.conf.py b/gunicorn.conf.py index f64fa8e73..81b9e8819 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -11,10 +11,10 @@ reload_engine = 'poll' def worker_abort(worker): worker.log.warning(f"Worker {worker.pid} received SIGABRT.") - try: from flask import g, request if g and request: + worker.log.warning(f"While serving {request.method} {request.url}") u = getattr(g, 'v', None) if u: worker.log.warning(f"User: {u.username!r} id:{u.id}")