From af95b5d246190b86b08849faf91b0581f42549c2 Mon Sep 17 00:00:00 2001 From: Ted Kaemming <65315+tkaemming@users.noreply.github.com> Date: Tue, 12 Mar 2024 18:20:09 -0700 Subject: [PATCH] just assert the right number of rows were updated, don't log --- posthog/management/commands/backfill_distinct_id_overrides.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/posthog/management/commands/backfill_distinct_id_overrides.py b/posthog/management/commands/backfill_distinct_id_overrides.py index e194f45e28bf0..507e744a93d0e 100644 --- a/posthog/management/commands/backfill_distinct_id_overrides.py +++ b/posthog/management/commands/backfill_distinct_id_overrides.py @@ -68,7 +68,9 @@ def execute(self, dry_run: bool = False) -> None: [self.team_id], ) ) - logger.info("Completed %r, marked %s team as backfilled.", self, len(updated_teams)) + assert not len(updated_teams) > 1 + + logger.info("Completed %r!", self) class Command(BaseCommand):