Fix Loki logging
This commit is contained in:
parent
f9da090705
commit
c9ba680bbf
@ -21,8 +21,9 @@ def init_loki_logging(config: dict[str, str]):
|
|||||||
"name=%(name)s level=%(levelname)s time=%(asctime)s %(message)s",
|
"name=%(name)s level=%(levelname)s time=%(asctime)s %(message)s",
|
||||||
datefmt="%Y-%m-%d-%H:%M:%S",
|
datefmt="%Y-%m-%d-%H:%M:%S",
|
||||||
)
|
)
|
||||||
|
handler.setFormatter(formatter)
|
||||||
logging.handlers.QueueListener(queue, handler_loki)
|
logging.handlers.QueueListener(queue, handler_loki)
|
||||||
logging.getLogger().addHandler(handler_loki)
|
logging.getLogger().addHandler(handler)
|
||||||
|
|
||||||
|
|
||||||
def init_logging(config: dict[str, str]):
|
def init_logging(config: dict[str, str]):
|
||||||
|
Loading…
Reference in New Issue
Block a user