diff options
author | Erik Johnston <erik@matrix.org> | 2019-01-08 12:24:48 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-01-08 12:28:30 +0000 |
commit | 1371d5b798dc308bef8b0adbf3229919981fafa4 (patch) | |
tree | bdf0b62153f31262870023751fae073634f9b3a2 /synapse/federation | |
parent | Refactor request sending to have better excpetions (#4358) (diff) | |
download | synapse-1371d5b798dc308bef8b0adbf3229919981fafa4.tar.xz |
Don't log stack traces for HTTP error responses
Diffstat (limited to 'synapse/federation')
-rw-r--r-- | synapse/federation/transaction_queue.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/federation/transaction_queue.py b/synapse/federation/transaction_queue.py index 4640513497..fe787abaeb 100644 --- a/synapse/federation/transaction_queue.py +++ b/synapse/federation/transaction_queue.py @@ -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, |