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.
This commit is contained in:
Erik Johnston 2018-08-21 11:09:46 +01:00
parent 324525f40c
commit 808d8e06aa
2 changed files with 8 additions and 4 deletions

View file

@ -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: