summary refs log tree commit diff
path: root/synapse/storage/data_stores
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/storage/data_stores
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/storage/data_stores')
-rw-r--r--synapse/storage/data_stores/main/event_federation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/data_stores/main/event_federation.py b/synapse/storage/data_stores/main/event_federation.py
index a470a48e0f..60bcfb768a 100644
--- a/synapse/storage/data_stores/main/event_federation.py
+++ b/synapse/storage/data_stores/main/event_federation.py
@@ -365,7 +365,7 @@ class EventFederationWorkerStore(EventsWorkerStore, SignatureWorkerStore, SQLBas
 
     def _get_backfill_events(self, txn, room_id, event_list, limit):
         logger.debug(
-            "_get_backfill_events: %s, %s, %s", room_id, repr(event_list), limit
+            "_get_backfill_events: %s, %r, %s", room_id, event_list, limit
         )
 
         event_results = set()