From 4258e219104027c71cea0a52d7bee9940d283d28 Mon Sep 17 00:00:00 2001 From: kat witch Date: Fri, 16 Jul 2021 23:15:52 +0100 Subject: [PATCH] Matrix log level reduction --- config/services/matrix.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/config/services/matrix.nix b/config/services/matrix.nix index 1773c751..61391af6 100644 --- a/config/services/matrix.nix +++ b/config/services/matrix.nix @@ -16,6 +16,33 @@ with lib; services.matrix-synapse = { enable = true; max_upload_size = "512M"; + logConfig = '' +version: 1 + +# In systemd's journal, loglevel is implicitly stored, so let's omit it +# from the message text. +formatters: + journal_fmt: + format: '%(name)s: [%(request)s] %(message)s' + +filters: + context: + (): synapse.util.logcontext.LoggingContextFilter + request: "" + +handlers: + journal: + class: systemd.journal.JournalHandler + formatter: journal_fmt + filters: [context] + SYSLOG_IDENTIFIER: synapse + +root: + level: WARNING + handlers: [journal] + +disable_existing_loggers: False + ''; server_name = "kittywit.ch"; app_service_config_files = [ "/var/lib/matrix-synapse/telegram-registration.yaml"