Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Info log when registering background updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Aug 2, 2023
1 parent a9e6301 commit e6816af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions synapse/storage/background_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit e6816af

Please sign in to comment.