Skip to content
Snippets Groups Projects
Commit 1371d5b7 authored by Erik Johnston's avatar Erik Johnston
Browse files

Don't log stack traces for HTTP error responses

parent b970cb0e
No related branches found
No related tags found
No related merge requests found
......@@ -522,8 +522,13 @@ class TransactionQueue(object):
)
except FederationDeniedError as e:
logger.info(e)
except HttpResponseException as e:
logger.warning(
"TX [%s] Received %d response to transaction: %s",
destination, e.code, e,
)
except RequestSendFailed as e:
logger.warning("(TX [%s] Failed to send transaction: %s", destination, e)
logger.warning("TX [%s] Failed to send transaction: %s", destination, e)
for p, _ in pending_pdus:
logger.info("Failed to send event %s to %s", p.event_id,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment