forked from MarseyWorld/MarseyWorld
more prominent warnings
parent
93aa222542
commit
c5e782e3f0
|
@ -16,12 +16,14 @@ def worker_abort(worker):
|
||||||
try:
|
try:
|
||||||
from flask import g, request
|
from flask import g, request
|
||||||
if g and request:
|
if g and request:
|
||||||
worker.log.warning(f"\n\nWhile serving {request.method} {request.url}")
|
worker.log.warning(f"\n")
|
||||||
|
worker.log.warning(f"While serving {request.method} {request.url}")
|
||||||
u = getattr(g, 'v', None)
|
u = getattr(g, 'v', None)
|
||||||
if u:
|
if u:
|
||||||
worker.log.warning(f"User: {u.username!r} id:{u.id}\n\n")
|
worker.log.warning(f"User: {u.username!r} id:{u.id}")
|
||||||
else:
|
else:
|
||||||
worker.log.warning(f"User: not logged in\n\n")
|
worker.log.warning(f"User: not logged in")
|
||||||
|
worker.log.warning(f"\n")
|
||||||
else:
|
else:
|
||||||
worker.log.warning("No request info")
|
worker.log.warning("No request info")
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue