forked from rDrama/rDrama
1
0
Fork 0

make warnings more prominent

master
Aevann 2023-01-01 02:32:11 +02:00
parent 7cb721e6bb
commit 6933adb185
1 changed files with 2 additions and 2 deletions

View File

@ -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(f"\n★★★★★★★★★★★★★★★★★★★★★★★★\n")
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(f"\n★★★★★★★★★★★★★★★★★★★★★★★★\n")
else:
worker.log.warning("No request info")
except: