summary refs log tree commit diff
path: root/synapse/federation/federation_client.py
diff options
context:
space:
mode:
authorMichael Kaye <1917473+michaelkaye@users.noreply.github.com>2019-10-24 18:17:33 +0100
committerMichael Kaye <1917473+michaelkaye@users.noreply.github.com>2019-10-24 18:18:56 +0100
commit9eebc1e73b014c00f6c2d6e6760dfda809324a08 (patch)
tree07680b4ec4b076f3d5d61dc1fe069e9f6e2a6fca /synapse/federation/federation_client.py
parentDon't encode object as UTF-8 string if not needed. (diff)
downloadsynapse-9eebc1e73b014c00f6c2d6e6760dfda809324a08.tar.xz
use %r to __repr__ objects
This avoids calculating __repr__ unless we are going to log.
Diffstat (limited to 'synapse/federation/federation_client.py')
-rw-r--r--synapse/federation/federation_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py
index 5b22a39b7f..f5c1632916 100644
--- a/synapse/federation/federation_client.py
+++ b/synapse/federation/federation_client.py
@@ -196,7 +196,7 @@ class FederationClient(FederationBase):
             dest, room_id, extremities, limit
         )
 
-        logger.debug("backfill transaction_data=%s", repr(transaction_data))
+        logger.debug("backfill transaction_data=%r", transaction_data)
 
         room_version = yield self.store.get_room_version(room_id)
         format_ver = room_version_to_event_format(room_version)