summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-08-21 11:09:46 +0100
committerErik Johnston <erik@matrix.org>2018-08-21 11:19:26 +0100
commit808d8e06aa6a3bdd9016f82d98088111e5741f4c (patch)
tree40b74f3240ecc47c8cfe72ffb75de7c9c5ec55a5 /synapse/federation
parentPort over enough to get some sytests running on Python 3 (#3668) (diff)
downloadsynapse-808d8e06aa6a3bdd9016f82d98088111e5741f4c.tar.xz
Don't log exceptions when failing to fetch server keys
Not being able to resolve or connect to remote servers is an expected
error, so we shouldn't log at ERROR with stacktraces.
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/transport/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/transport/server.py b/synapse/federation/transport/server.py
index 77969a4f38..33a37d4498 100644
--- a/synapse/federation/transport/server.py
+++ b/synapse/federation/transport/server.py
@@ -261,10 +261,10 @@ class BaseFederationServlet(object):
             except NoAuthenticationError:
                 origin = None
                 if self.REQUIRE_AUTH:
-                    logger.exception("authenticate_request failed")
+                    logger.warn("authenticate_request failed")
                     raise
             except Exception:
-                logger.exception("authenticate_request failed")
+                logger.warn("authenticate_request failed")
                 raise
 
             if origin: