summary refs log tree commit diff
path: root/synapse/federation/transport/server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-08-21 11:41:07 +0100
committerErik Johnston <erik@matrix.org>2018-08-21 11:42:49 +0100
commitc2c153dd3b97ec98ec7ef295deeb466d72027a01 (patch)
treeb4d9ed28e26c2a50219370f4fc4a3feb70300ea9 /synapse/federation/transport/server.py
parentNewsfile (diff)
downloadsynapse-c2c153dd3b97ec98ec7ef295deeb466d72027a01.tar.xz
Log more detail when we fail to authenticate request
Diffstat (limited to 'synapse/federation/transport/server.py')
-rw-r--r--synapse/federation/transport/server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/federation/transport/server.py b/synapse/federation/transport/server.py
index 33a37d4498..7a993fd1cf 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.warn("authenticate_request failed")
+                    logger.warn("authenticate_request failed: missing authentication")
                     raise
-            except Exception:
-                logger.warn("authenticate_request failed")
+            except Exception as e:
+                logger.warn("authenticate_request failed: %s", e)
                 raise
 
             if origin: