diff options
author | Michael Kaye <1917473+michaelkaye@users.noreply.github.com> | 2019-10-24 18:17:33 +0100 |
---|---|---|
committer | Michael Kaye <1917473+michaelkaye@users.noreply.github.com> | 2019-10-24 18:18:56 +0100 |
commit | 9eebc1e73b014c00f6c2d6e6760dfda809324a08 (patch) | |
tree | 07680b4ec4b076f3d5d61dc1fe069e9f6e2a6fca /synapse/federation/transport/client.py | |
parent | Don't encode object as UTF-8 string if not needed. (diff) | |
download | synapse-9eebc1e73b014c00f6c2d6e6760dfda809324a08.tar.xz |
use %r to __repr__ objects
This avoids calculating __repr__ unless we are going to log.
Diffstat (limited to 'synapse/federation/transport/client.py')
-rw-r--r-- | synapse/federation/transport/client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/federation/transport/client.py b/synapse/federation/transport/client.py index 7b18408144..920fa86853 100644 --- a/synapse/federation/transport/client.py +++ b/synapse/federation/transport/client.py @@ -122,10 +122,10 @@ class TransportLayerClient(object): Deferred: Results in a dict received from the remote homeserver. """ logger.debug( - "backfill dest=%s, room_id=%s, event_tuples=%s, limit=%s", + "backfill dest=%s, room_id=%s, event_tuples=%r, limit=%s", destination, room_id, - repr(event_tuples), + event_tuples, str(limit), ) |