mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-17 07:21:37 +01:00
Merge pull request #3909 from turt2live/travis/fix-logging-1
Fix matrixfederationclient.py logging: Destination is a string
This commit is contained in:
commit
47c02e6332
2 changed files with 5 additions and 4 deletions
1
changelog.d/3909.misc
Normal file
1
changelog.d/3909.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Fix log format error in matrixfederationclient.py
|
|
@ -150,14 +150,14 @@ def _handle_json_response(reactor, timeout_sec, request, response):
|
|||
body = yield make_deferred_yieldable(d)
|
||||
except Exception as e:
|
||||
logger.warn(
|
||||
"{%s} [%d] Error reading response: %s",
|
||||
"{%s} [%s] Error reading response: %s",
|
||||
request.txn_id,
|
||||
request.destination,
|
||||
e,
|
||||
)
|
||||
raise
|
||||
logger.info(
|
||||
"{%s} [%d] Completed: %d %s",
|
||||
"{%s} [%s] Completed: %d %s",
|
||||
request.txn_id,
|
||||
request.destination,
|
||||
response.code,
|
||||
|
@ -707,14 +707,14 @@ class MatrixFederationHttpClient(object):
|
|||
length = yield make_deferred_yieldable(d)
|
||||
except Exception as e:
|
||||
logger.warn(
|
||||
"{%s} [%d] Error reading response: %s",
|
||||
"{%s} [%s] Error reading response: %s",
|
||||
request.txn_id,
|
||||
request.destination,
|
||||
e,
|
||||
)
|
||||
raise
|
||||
logger.info(
|
||||
"{%s} [%d] Completed: %d %s [%d bytes]",
|
||||
"{%s} [%s] Completed: %d %s [%d bytes]",
|
||||
request.txn_id,
|
||||
request.destination,
|
||||
response.code,
|
||||
|
|
Loading…
Reference in a new issue