diff options
author | sefidel <contact@sefidel.net> | 2023-12-23 00:03:51 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-12-23 00:03:51 +0900 |
commit | daff6a188d140aa3e297a30c8f6393ad5880c345 (patch) | |
tree | 13f2c451edbb54e2e6d7e36abdb0bfb12f4dd3e9 | |
parent | f47bf3b5c7c4c03a7f4e2aac7856e6e8a6dc360f (diff) | |
download | infra-daff6a188d140aa3e297a30c8f6393ad5880c345.tar.gz infra-daff6a188d140aa3e297a30c8f6393ad5880c345.zip |
fix(modules/matrix-bridge): fix logging for mautrix-discord
-rw-r--r-- | overlays/mautrix-discord-module.nix | 29 |
1 files changed, 7 insertions, 22 deletions
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 '' |