use %r to __repr__ objects

This avoids calculating __repr__ unless we are going to log.
This commit is contained in:
Michael Kaye 2019-10-24 18:17:33 +01:00
parent f85b9842f0
commit 9eebc1e73b
3 changed files with 4 additions and 4 deletions

View file

@ -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)