From cae748c2bc27dde7dd51b2985fe1b51d344f3169 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 6 Feb 2023 05:40:56 +0200 Subject: [PATCH] make gunicorn warnings more prominent --- gunicorn.conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gunicorn.conf.py b/gunicorn.conf.py index 9d0ad71df..79542d553 100644 --- a/gunicorn.conf.py +++ b/gunicorn.conf.py @@ -13,14 +13,14 @@ def worker_abort(worker): try: from flask import g, request if g and request: - worker.log.warning(f"\n\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★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★\n") + worker.log.warning(f"\n★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★\n") else: worker.log.warning("No request info") except: