Skip to content

Commit

Permalink
Reduce logging noise for incident cost calculation. (#4305)
Browse files Browse the repository at this point in the history
  • Loading branch information
metroid-samus authored Jan 29, 2024
1 parent af11f01 commit faa73c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dispatch/incident_cost/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@ def calculate_incident_response_cost(
log.warning(f"Incident with id {incident_id} not found.")
return 0
if incident.cost_model and incident.cost_model.enabled:
log.info(f"Calculating {incident.name} incident cost with model {incident.cost_model}.")
log.debug(f"Calculating {incident.name} incident cost with model {incident.cost_model}.")
return calculate_incident_response_cost_with_cost_model(
incident=incident, db_session=db_session
)
else:
log.info("No incident cost model found. Defaulting to classic incident cost model.")
log.debug("No incident cost model found. Defaulting to classic incident cost model.")
return calculate_incident_response_cost_with_classic_model(
incident=incident, incident_review=incident_review
)
Expand Down

0 comments on commit faa73c0

Please sign in to comment.