mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 13:45:05 -05:00
Log more detail when we fail to authenticate request
This commit is contained in:
parent
79d3b4689e
commit
c2c153dd3b
@ -261,10 +261,10 @@ class BaseFederationServlet(object):
|
|||||||
except NoAuthenticationError:
|
except NoAuthenticationError:
|
||||||
origin = None
|
origin = None
|
||||||
if self.REQUIRE_AUTH:
|
if self.REQUIRE_AUTH:
|
||||||
logger.warn("authenticate_request failed")
|
logger.warn("authenticate_request failed: missing authentication")
|
||||||
raise
|
raise
|
||||||
except Exception:
|
except Exception as e:
|
||||||
logger.warn("authenticate_request failed")
|
logger.warn("authenticate_request failed: %s", e)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
if origin:
|
if origin:
|
||||||
|
Loading…
Reference in New Issue
Block a user