forked from MarseyWorld/MarseyWorld
more prominent warnings
parent
14c521911a
commit
cb5f4d8534
|
@ -14,14 +14,14 @@ def worker_abort(worker):
|
|||
try:
|
||||
from flask import g, request
|
||||
if g and request:
|
||||
worker.log.warning(f"\n")
|
||||
worker.log.warning("-------------------------------------------------")
|
||||
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}")
|
||||
else:
|
||||
worker.log.warning(f"User: not logged in")
|
||||
worker.log.warning(f"\n")
|
||||
worker.log.warning("-------------------------------------------------")
|
||||
else:
|
||||
worker.log.warning("No request info")
|
||||
except:
|
||||
|
|
Loading…
Reference in New Issue