Skip to content

Commit

Permalink
Fix logger.debug statements causing a TypeError preventing the catch-…
Browse files Browse the repository at this point in the history
…up command from completing.
  • Loading branch information
kburke committed Oct 4, 2024
1 parent 7b5d5c8 commit c41b666
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/fresh_indices/fresh_indices.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def catch_up_new_index(es_mgr:ESManager,op_data_key:int)->None:

if a_translator.failed_entity_ids:
logger.info(f"{len(a_translator.failed_entity_ids)} entity ids failed")
logger.debug(*a_translator.failed_entity_ids, sep="\n")
logger.debug("\n".join(map(str, a_translator.failed_entity_ids)))
op_data_supplement['catchup']['translator_failed_entity_ids']=a_translator.failed_entity_ids
else:
logger.info(f"No failed_entity_ids reported for the translator.")
Expand Down Expand Up @@ -560,7 +560,7 @@ def catch_up_live_index(es_mgr:ESManager)->None:

if live_translator.failed_entity_ids:
logger.info(f"{len(live_translator.failed_entity_ids)} entity ids failed")
logger.debug(*live_translator.failed_entity_ids, sep="\n")
logger.debug("\n".join(map(str, live_translator.failed_entity_ids)))
op_data_supplement['catchup']['translator_failed_entity_ids']=live_translator.failed_entity_ids
else:
logger.info(f"No failed_entity_ids reported for the translator.")
Expand Down Expand Up @@ -623,7 +623,7 @@ def create_new_indices():

if a_translator.failed_entity_ids:
logger.info(f"{len(a_translator.failed_entity_ids)} entity ids failed")
logger.debug(*a_translator.failed_entity_ids, sep="\n")
logger.debug("\n".join(map(str, a_translator.failed_entity_ids)))
op_data_supplement['create']['translator_failed_entity_ids']=a_translator.failed_entity_ids
else:
logger.info(f"No failed_entity_ids reported for the translator.")
Expand Down

0 comments on commit c41b666

Please sign in to comment.