Log more detail when we fail to authenticate request

pull/14/head
Erik Johnston 6 years ago
parent 79d3b4689e
commit c2c153dd3b
  1. 6
      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:

Loading…
Cancel
Save