From 6e9e4388ae41585aad2a9f67dceca55f227f5c52 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 21 May 2021 10:10:15 +0200 Subject: [PATCH] matrix: log level warn --- services/matrix.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/services/matrix.nix b/services/matrix.nix index 8ac9f34..f132c92 100644 --- a/services/matrix.nix +++ b/services/matrix.nix @@ -69,6 +69,34 @@ in { extraConfig = '' experimental_features: { spaces_enabled: true } ''; + + 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: WARN + handlers: [journal] + + disable_existing_loggers: False + ''; }; services.nginx = {