From 4fb8212162e1e90489412ab2ddabe6fcfdcce341 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 4 Sep 2023 00:51:24 +0200 Subject: [PATCH] nixos/mautrix-whatsapp: log to the journal only Logging outside the journal requires to manually clean/rotate the logs and is quite surprising behavior: it should not be the default. --- .../modules/services/matrix/mautrix-whatsapp.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/nixos/modules/services/matrix/mautrix-whatsapp.nix b/nixos/modules/services/matrix/mautrix-whatsapp.nix index 7e568733b7b7..c4dc48213495 100644 --- a/nixos/modules/services/matrix/mautrix-whatsapp.nix +++ b/nixos/modules/services/matrix/mautrix-whatsapp.nix @@ -37,16 +37,11 @@ }; logging = { min_level = "info"; - writers = [ - { - type = "stdout"; - format = "pretty-colored"; - } - { - type = "file"; - format = "json"; - } - ]; + writers = lib.singleton { + type = "stdout"; + format = "pretty-colored"; + time_format = " "; + }; }; };