diff --git a/room_access_rules/__init__.py b/room_access_rules/__init__.py index b6cf9a7..fde08b3 100644 --- a/room_access_rules/__init__.py +++ b/room_access_rules/__init__.py @@ -189,8 +189,6 @@ def get_room_ids_from( return TaskStatus.COMPLETE, None, None async def fix_room_power_levels(self, room_id: str) -> None: - logger.info(f"Fixing power levels of room {room_id}") - # Fetch local users joined to the room local_joined_users = set() for user_id, membership in await self.store.get_local_users_related_to_room( @@ -253,6 +251,7 @@ async def fix_room_power_levels(self, room_id: str) -> None: # Send the updated pl event to the room with a local admin if changed: + logger.info(f"Fixing power levels of room {room_id}") await self.module_api.create_and_send_event_into_room( { "room_id": room_id,