Fix channel sync debug message

This commit is contained in:
Andrew Ferrazzutti 2022-03-12 23:27:28 -05:00
parent 1a947a1999
commit c7df4b1e65

View File

@ -460,7 +460,7 @@ class User(DBUser, BaseUser):
sync_count = min(sync_count, len(login_result.channelList)) sync_count = min(sync_count, len(login_result.channelList))
await self.push_bridge_state(BridgeStateEvent.BACKFILLING) await self.push_bridge_state(BridgeStateEvent.BACKFILLING)
self.log.debug(f"Syncing {sync_count} of {login_result.channelList} channels...") self.log.debug(f"Syncing {sync_count} of {len(login_result.channelList)} channels...")
for channel_item in login_result.channelList[:sync_count]: for channel_item in login_result.channelList[:sync_count]:
# TODO try-except here, above, below? # TODO try-except here, above, below?
await self._sync_channel(channel_item) await self._sync_channel(channel_item)