summary refs log tree commit diff
path: root/synapse/config/server.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-01-17 20:51:44 +0000
committerGitHub <noreply@github.com>2020-01-17 20:51:44 +0000
commita17f64361c87f06c67fd7bb5a98b54dc5a2bb4fb (patch)
tree64f87e61c6a8a4da74c1b45f84f4acdab14c2eb7 /synapse/config/server.py
parentFix up changelog (diff)
downloadsynapse-a17f64361c87f06c67fd7bb5a98b54dc5a2bb4fb.tar.xz
Add more logging around message retention policies support (#6717)
So we can debug issues like #6683 more easily
Diffstat (limited to 'synapse/config/server.py')
-rw-r--r--synapse/config/server.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py
index 9ac112233b..0ec1b0fadd 100644
--- a/synapse/config/server.py
+++ b/synapse/config/server.py
@@ -294,6 +294,14 @@ class ServerConfig(Config):
             self.retention_default_min_lifetime = None
             self.retention_default_max_lifetime = None
 
+        if self.retention_enabled:
+            logger.info(
+                "Message retention policies support enabled with the following default"
+                " policy: min_lifetime = %s ; max_lifetime = %s",
+                self.retention_default_min_lifetime,
+                self.retention_default_max_lifetime,
+            )
+
         self.retention_allowed_lifetime_min = retention_config.get(
             "allowed_lifetime_min"
         )