From c5e782e3f00b99a160dabe3e19ea749b34f5af7b Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 25 Dec 2022 06:36:08 +0200 Subject: [PATCH] more prominent warnings --- gunicorn.conf.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gunicorn.conf.py b/gunicorn.conf.py index 2c33d8e03..5908ac162 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -16,12 +16,14 @@ def worker_abort(worker): try: from flask import g, 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) 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: - worker.log.warning(f"User: not logged in\n\n") + worker.log.warning(f"User: not logged in") + worker.log.warning(f"\n") else: worker.log.warning("No request info") except: