update debug statements

This commit is contained in:
CocoByte 2023-11-07 19:35:22 -06:00
parent 18a999b022
commit 22f9952ffd
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
2 changed files with 3 additions and 2 deletions

View file

@ -468,7 +468,7 @@ class Command(BaseCommand):
new_entry_email = ""
new_entry_emailSent = False # set to False by default
TerminalHelper.print_conditional(debug_on, f"Processing item {total_rows_parsed}: {new_entry_domain_name}")
TerminalHelper.print_conditional(True, f"Processing item {total_rows_parsed}: {new_entry_domain_name}")
# PART 1: Get the status
if new_entry_domain_name not in domain_status_dictionary:

View file

@ -213,16 +213,17 @@ class LoadExtraTransitionDomain:
failed_count = len(failed_transition_domains)
if failed_count == 0:
TerminalHelper.print_conditional(self.debug, f"{TerminalHelper.array_as_string(updated_transition_domains)}")
logger.info(
f"""{TerminalColors.OKGREEN}
============= FINISHED ===============
Updated {len(updated_transition_domains)} transition domain entries:
{TerminalHelper.array_as_string(updated_transition_domains)}
{TerminalColors.ENDC}
"""
)
else:
# TODO - update
TerminalHelper.print_conditional(self.debug, f"{TerminalHelper.array_as_string(updated_transition_domains)}")
logger.error(
f"""{TerminalColors.FAIL}
============= FINISHED WITH ERRORS ===============