Use LokiHandler

This commit is contained in:
PapaTutuWawa 2023-12-23 21:45:46 +01:00
parent 2718e72a80
commit 248beeab3f

View File

@ -8,8 +8,7 @@ def init_loki_logging(config: dict[str, str]):
"""Configures the logging to Loki."""
import logging_loki
handler = logging_loki.LokiQueueHandler(
Queue(-1),
handler = logging_loki.LokiHandler(
url=config["loki"]["url"],
version="1",
tags={