Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3909 from turt2live/travis/fix-logging-1
Browse files Browse the repository at this point in the history
Fix matrixfederationclient.py logging: Destination is a string
  • Loading branch information
hawkowl authored Sep 19, 2018
2 parents 3f0d8e6 + 13b31a9 commit 47c02e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog.d/3909.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix log format error in matrixfederationclient.py
8 changes: 4 additions & 4 deletions synapse/http/matrixfederationclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -707,14 +707,14 @@ def get_file(self, destination, path, output_stream, args={},
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,
Expand Down

0 comments on commit 47c02e6

Please sign in to comment.