about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--overlays/mautrix-discord-module.nix29
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 ''