From 1bbbe70ecce071f4d51bae1e911f29411e3c4dfb Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Wed, 25 Aug 2021 23:00:00 +0200
Subject: [PATCH] matrix: Remove synapse's log buffering

The JournalHandler doesn't support flushing, anyway.
---
 roles/matrix/files/log_config.yaml | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/roles/matrix/files/log_config.yaml b/roles/matrix/files/log_config.yaml
index 46213104d..4a451abf2 100644
--- a/roles/matrix/files/log_config.yaml
+++ b/roles/matrix/files/log_config.yaml
@@ -5,27 +5,17 @@ formatters:
         format: '%(name)s: [%(request)s] %(message)s'
 
 handlers:
-    buffer:
-        class: logging.handlers.MemoryHandler
-        target: journal
-        capacity: 10
-        flushLevel: 30  # Flush for WARNING logs as well
-
     journal:
         class: systemd.journal.JournalHandler
         formatter: journal_fmt
         SYSLOG_IDENTIFIER: synapse
 
 loggers:
-    twisted:
-        handlers: [journal]
-        propagate: false
-
     synapse.logging.context:
         level: ERROR
 
 root:
     level: WARNING
-    handlers: [buffer]
+    handlers: [journal]
 
 disable_existing_loggers: false
-- 
GitLab