mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 04:28:39 +02:00
remove log statements
This commit is contained in:
parent
bdd57c8cfd
commit
d89f324e6f
1 changed files with 0 additions and 9 deletions
|
@ -293,8 +293,6 @@ class Command(BaseCommand):
|
|||
# 2. Said portfolio (or portfolios) are only the ones specified at the start of the script.
|
||||
# 3. The domain request is in status "started".
|
||||
# Note: Both names are normalized so excess spaces are stripped and the string is lowercased.
|
||||
message = f"agencies: {agencies}"
|
||||
TerminalHelper.colorful_logger(logger.info, TerminalColors.MAGENTA, message)
|
||||
|
||||
domain_requests_to_update = DomainRequest.objects.filter(
|
||||
federal_agency__in=agencies,
|
||||
|
@ -308,8 +306,6 @@ class Command(BaseCommand):
|
|||
return
|
||||
|
||||
portfolio_set = {normalize_string(portfolio.organization_name) for portfolio in portfolios if portfolio}
|
||||
message = f"portfolio_set: {portfolio_set}"
|
||||
TerminalHelper.colorful_logger(logger.info, TerminalColors.MAGENTA, message)
|
||||
|
||||
# Update the request, assuming the given agency name matches the portfolio name
|
||||
updated_requests = []
|
||||
|
@ -319,9 +315,6 @@ class Command(BaseCommand):
|
|||
req.federal_agency = None
|
||||
updated_requests.append(req)
|
||||
|
||||
message = f"updated_requests: {updated_requests}"
|
||||
TerminalHelper.colorful_logger(logger.info, TerminalColors.MAGENTA, message)
|
||||
|
||||
# Execute the update and Log the results
|
||||
if TerminalHelper.prompt_for_execution(
|
||||
system_exit_on_terminate=False,
|
||||
|
@ -331,8 +324,6 @@ class Command(BaseCommand):
|
|||
),
|
||||
prompt_title="Do you wish to commit this update to the database?",
|
||||
):
|
||||
message = "prompted for execution"
|
||||
TerminalHelper.colorful_logger(logger.info, TerminalColors.MAGENTA, message)
|
||||
DomainRequest.objects.bulk_update(updated_requests, ["federal_agency"])
|
||||
TerminalHelper.colorful_logger(logger.info, TerminalColors.OKBLUE, "Action completed successfully.")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue