Use LokiHandler
This commit is contained in:
parent
2718e72a80
commit
248beeab3f
@ -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={
|
||||
|
Loading…
Reference in New Issue
Block a user