From 1ab1d022cc10ccbae8c13be4b0a434841f6bb1b4 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 21 Sep 2023 14:23:13 +0300 Subject: [PATCH] Add changes. --- moonstreamapi/moonstreamapi/admin/migrations/add_selectors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moonstreamapi/moonstreamapi/admin/migrations/add_selectors.py b/moonstreamapi/moonstreamapi/admin/migrations/add_selectors.py index f003aa29..7da444af 100644 --- a/moonstreamapi/moonstreamapi/admin/migrations/add_selectors.py +++ b/moonstreamapi/moonstreamapi/admin/migrations/add_selectors.py @@ -167,7 +167,7 @@ def deduplicate_moonworm_task_by_selector(): ## remove all tasks except latest logger.info( - f"Found {len(tasks_dict['entries'])} tasks with selector {selector}" + f"Found {len(tasks_dict['entries'])} tasks with selector {selector} erliest task {earliest_task_id} with created_at: {tasks_dict['entries'][earliest_task_id]}" ) for task_id in tasks_dict["entries"]: @@ -181,7 +181,7 @@ def deduplicate_moonworm_task_by_selector(): token=MOONSTREAM_ADMIN_ACCESS_TOKEN, ) except BugoutResponseException as e: - logger.error(f"Unable to delete entry: {e}") + logger.error(f"Unable to delete entry with id {task_id} : {e}") continue logger.info(f"Deleted entry: {task_id}")