Fix Loki logging

This commit is contained in:
PapaTutuWawa 2023-12-23 21:40:05 +01:00
parent f9da090705
commit c9ba680bbf

View File

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