summary refs log tree commit diff
path: root/synapse/config/logger.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-09-13 12:57:09 +0100
committerErik Johnston <erik@matrix.org>2018-09-13 12:57:09 +0100
commit93139a1fb8061b709e0bc62fc4f05c94940c2625 (patch)
treef0904daf581f7252fc7da428e97ac021c7004a70 /synapse/config/logger.py
parentNewsfile (diff)
parentRemove some superfluous logging (#3855) (diff)
downloadsynapse-93139a1fb8061b709e0bc62fc4f05c94940c2625.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/speed_up_purge
Diffstat (limited to 'synapse/config/logger.py')
-rw-r--r--synapse/config/logger.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/synapse/config/logger.py b/synapse/config/logger.py
index 3f187adfc8..e9a936118d 100644
--- a/synapse/config/logger.py
+++ b/synapse/config/logger.py
@@ -227,7 +227,22 @@ def setup_logging(config, use_worker_options=False):
     #
     # However this may not be too much of a problem if we are just writing to a file.
     observer = STDLibLogObserver()
+
+    def _log(event):
+
+        if "log_text" in event:
+            if event["log_text"].startswith("DNSDatagramProtocol starting on "):
+                return
+
+            if event["log_text"].startswith("(UDP Port "):
+                return
+
+            if event["log_text"].startswith("Timing out client"):
+                return
+
+        return observer(event)
+
     globalLogBeginner.beginLoggingTo(
-        [observer],
+        [_log],
         redirectStandardIO=not config.no_redirect_stdio,
     )