From c9ba680bbfc76a2ae516575a8a0afb82695b4ada Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sat, 23 Dec 2023 21:40:05 +0100 Subject: [PATCH] Fix Loki logging --- akibabot/logging.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/akibabot/logging.py b/akibabot/logging.py index 3280b93..a52c016 100644 --- a/akibabot/logging.py +++ b/akibabot/logging.py @@ -21,8 +21,9 @@ def init_loki_logging(config: dict[str, str]): "name=%(name)s level=%(levelname)s time=%(asctime)s %(message)s", datefmt="%Y-%m-%d-%H:%M:%S", ) + handler.setFormatter(formatter) logging.handlers.QueueListener(queue, handler_loki) - logging.getLogger().addHandler(handler_loki) + logging.getLogger().addHandler(handler) def init_logging(config: dict[str, str]):