--- Begin Message ---
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock
Please unblock package matrix-synapse
The package currently in buster generates gigabytes of logs which can
easily fill up disks on servers (RC bug #927057).
The following patch fixes the problem, and I can upload the fix
if this is approved.
unblock matrix-synapse/0.99.2-3.1
-- System Information:
Debian Release: 9.8
APT prefers stable
APT policy: (500, 'stable'), (1, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_CA.UTF-8, LC_CTYPE=fr_CA.UTF-8 (charmap=UTF-8), LANGUAGE=fr_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru matrix-synapse-0.99.2/debian/changelog matrix-synapse-0.99.2/debian/changelog
--- matrix-synapse-0.99.2/debian/changelog 2019-03-24 09:02:48.000000000 -0400
+++ matrix-synapse-0.99.2/debian/changelog 2019-04-27 11:48:31.000000000 -0400
@@ -1,3 +1,10 @@
+matrix-synapse (0.99.2-3.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * fix log rotation to be less verbose (Closes: #927057)
+
+ -- Antoine Beaupré <anarcat@debian.org> Sat, 27 Apr 2019 11:48:31 -0400
+
matrix-synapse (0.99.2-3) unstable; urgency=medium
* Make the code querying the location of the key file actually work.
diff -Nru matrix-synapse-0.99.2/debian/log.yaml matrix-synapse-0.99.2/debian/log.yaml
--- matrix-synapse-0.99.2/debian/log.yaml 2019-03-24 09:02:48.000000000 -0400
+++ matrix-synapse-0.99.2/debian/log.yaml 2019-04-27 11:48:31.000000000 -0400
@@ -14,12 +14,12 @@
handlers:
file:
- class: logging.handlers.RotatingFileHandler
+ class: logging.handlers.WatchedFileHandler
formatter: precise
filename: /var/log/matrix-synapse/homeserver.log
- maxBytes: 104857600
- backupCount: 10
filters: [context]
+ level: DEBUG
+ encoding: utf8
console:
class: logging.StreamHandler
formatter: precise
@@ -31,12 +31,18 @@
SYSLOG_IDENTIFIER: synapse
loggers:
+ twisted:
+ level: WARN
+
synapse:
- level: INFO
+ level: WARN
synapse.storage.SQL:
level: INFO
+ synapse.http.matrixfederationclient:
+ level: ERROR
+
root:
level: INFO
handlers: [file, journal]
diff -Nru matrix-synapse-0.99.2/debian/matrix-synapse.logrotate matrix-synapse-0.99.2/debian/matrix-synapse.logrotate
--- matrix-synapse-0.99.2/debian/matrix-synapse.logrotate 1969-12-31 19:00:00.000000000 -0500
+++ matrix-synapse-0.99.2/debian/matrix-synapse.logrotate 2019-04-27 11:48:31.000000000 -0400
@@ -0,0 +1,8 @@
+/var/log/matrix-synapse/homeserver.log {
+ rotate 7
+ daily
+ missingok
+ notifempty
+ delaycompress
+ compress
+}
--- End Message ---