From cd2c375ebdffa4b727e0810bc240c20726bdf2f8 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 24 Dec 2022 18:48:23 +0200 Subject: [PATCH] more prominent warnings --- gunicorn.conf.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gunicorn.conf.py b/gunicorn.conf.py index 39c57ff91..4f9a7ac20 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -14,14 +14,12 @@ def worker_abort(worker): try: from flask import g, request if g and request: - worker.log.warning("-------------------------------------------------") - worker.log.warning(f"While serving {request.method} {request.url}") + worker.log.warning(f"\n\nWhile serving {request.method} {request.url}") u = getattr(g, 'v', None) if u: - worker.log.warning(f"User: {u.username!r} id:{u.id}") + worker.log.warning(f"User: {u.username!r} id:{u.id}\n\n") else: - worker.log.warning(f"User: not logged in") - worker.log.warning("-------------------------------------------------") + worker.log.warning(f"User: not logged in\n\n") else: worker.log.warning("No request info") except: