mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-19 10:59:21 +02:00
update debug statements
This commit is contained in:
parent
18a999b022
commit
22f9952ffd
2 changed files with 3 additions and 2 deletions
|
@ -468,7 +468,7 @@ class Command(BaseCommand):
|
||||||
new_entry_email = ""
|
new_entry_email = ""
|
||||||
new_entry_emailSent = False # set to False by default
|
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
|
# PART 1: Get the status
|
||||||
if new_entry_domain_name not in domain_status_dictionary:
|
if new_entry_domain_name not in domain_status_dictionary:
|
||||||
|
|
|
@ -213,16 +213,17 @@ class LoadExtraTransitionDomain:
|
||||||
|
|
||||||
failed_count = len(failed_transition_domains)
|
failed_count = len(failed_transition_domains)
|
||||||
if failed_count == 0:
|
if failed_count == 0:
|
||||||
|
TerminalHelper.print_conditional(self.debug, f"{TerminalHelper.array_as_string(updated_transition_domains)}")
|
||||||
logger.info(
|
logger.info(
|
||||||
f"""{TerminalColors.OKGREEN}
|
f"""{TerminalColors.OKGREEN}
|
||||||
============= FINISHED ===============
|
============= FINISHED ===============
|
||||||
Updated {len(updated_transition_domains)} transition domain entries:
|
Updated {len(updated_transition_domains)} transition domain entries:
|
||||||
{TerminalHelper.array_as_string(updated_transition_domains)}
|
|
||||||
{TerminalColors.ENDC}
|
{TerminalColors.ENDC}
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
# TODO - update
|
# TODO - update
|
||||||
|
TerminalHelper.print_conditional(self.debug, f"{TerminalHelper.array_as_string(updated_transition_domains)}")
|
||||||
logger.error(
|
logger.error(
|
||||||
f"""{TerminalColors.FAIL}
|
f"""{TerminalColors.FAIL}
|
||||||
============= FINISHED WITH ERRORS ===============
|
============= FINISHED WITH ERRORS ===============
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue