diff --git a/synapse/storage/background_updates.py b/synapse/storage/background_updates.py index 2d5ddc3e7be4..92e1064db2cd 100644 --- a/synapse/storage/background_updates.py +++ b/synapse/storage/background_updates.py @@ -618,6 +618,9 @@ def register_background_update_handler( update_name: The name of the update that this code handles. update_handler: The function that does the update. """ + + logger.info("Registering background update: %s", update_name) + self._background_update_handlers[update_name] = _BackgroundUpdateHandler( update_handler ) @@ -656,6 +659,8 @@ def register_background_index_update( The named index will be dropped upon completion of the new index. """ + logger.info("Registering background index update: %s", update_name) + async def updater(progress: JsonDict, batch_size: int) -> int: await self.create_index_in_background( index_name=index_name, @@ -694,6 +699,8 @@ def register_background_validate_constraint( table: table the constraint is applied to """ + logger.info("Registering background validate constraint: %s", update_name) + def runner(conn: Connection) -> None: c = conn.cursor()