From daff6a188d140aa3e297a30c8f6393ad5880c345 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 23 Dec 2023 00:03:51 +0900 Subject: fix(modules/matrix-bridge): fix logging for mautrix-discord --- overlays/mautrix-discord-module.nix | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) (limited to 'overlays') diff --git a/overlays/mautrix-discord-module.nix b/overlays/mautrix-discord-module.nix index 47fd2f6..36cafe6 100644 --- a/overlays/mautrix-discord-module.nix +++ b/overlays/mautrix-discord-module.nix @@ -42,28 +42,13 @@ in }; logging = { - version = 1; - - formatters.precise.format = "[%(levelname)s@%(name)s] %(message)s"; - - handlers.console = { - class = "logging.StreamHandler"; - formatter = "precise"; - }; - - loggers = { - mau.level = "INFO"; - - # prevent tokens from leaking in the logs: - # https://github.com/tulir/mautrix-telegram/issues/351 - aiohttp.level = "WARNING"; - }; - - # log to console/systemd instead of file - root = { - level = "INFO"; - handlers = [ "console" ]; - }; + min_level = "debug"; + writers = [ + { + type = "stdout"; + format = "pretty-colored"; + } + ]; }; }; example = literalExpression '' -- cgit 1.4.1