0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-01 10:18:54 +02:00

Fix duplicate logging of exceptions in transaction processing (#9780)

There's no point logging this twice.
This commit is contained in:
Richard van der Hoff 2021-04-09 18:12:15 +01:00 committed by GitHub
parent abc814dcbf
commit f946450184
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

1
changelog.d/9780.bugfix Normal file
View file

@ -0,0 +1 @@
Fix duplicate logging of exceptions thrown during federation transaction processing.

View file

@ -425,13 +425,9 @@ class FederationSendServlet(BaseFederationServlet):
logger.exception(e)
return 400, {"error": "Invalid transaction"}
try:
code, response = await self.handler.on_incoming_transaction(
origin, transaction_data
)
except Exception:
logger.exception("on_incoming_transaction failed")
raise
code, response = await self.handler.on_incoming_transaction(
origin, transaction_data
)
return code, response