Skip to content

Commit 31b32b3

Browse files
committed
Expand on why we log early
1 parent 47c0161 commit 31b32b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

synapse/rest/synapse/mas/devices.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ async def _async_render_POST(
197197
to_add = target_device_list - current_devices_list
198198
to_delete = current_devices_list - target_device_list
199199

200-
# Log what we're about to do, as this can be an expensive operation
200+
# Log what we're about to do to make it easier to debug if it stops
201+
# mid-way, as this can be a long operation if there are a lot of devices
202+
# to delete or to add.
201203
if to_add and to_delete:
202204
logger.info(
203205
"Syncing %d devices for user %s will add %d devices and delete %d devices",

0 commit comments

Comments
 (0)