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]):