show url and method again

pull/20/head
justcool393 2022-11-17 10:41:56 -06:00
parent 8d46295d49
commit ac0b1d8482
1 changed files with 1 additions and 1 deletions

View File

@ -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}")