From 6b670c74cf346d2650a8cf6e9d44675eab8cb0de Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 21 Aug 2022 09:42:28 +0200 Subject: [PATCH] Tweak logger --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 7d40ace..3203cc9 100644 --- a/app/main.py +++ b/app/main.py @@ -193,7 +193,7 @@ logger_format = ( "{name}:{function}:{line} | " "{extra[request_id]} - {message}" ) -logger.add(sys.stdout, format=logger_format) +logger.add(sys.stdout, format=logger_format, level="DEBUG" if DEBUG else "INFO") class ActivityPubResponse(JSONResponse):