From 830d5796edb424336aa8f9d297cd5c27549ed6da Mon Sep 17 00:00:00 2001 From: Max Antonucci Date: Fri, 6 Sep 2024 18:20:29 -0400 Subject: [PATCH] VA-86081: Add logging for BE transform expense update --- .../v0/fsr_form_transform/enhanced_expense_calculator.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/debts_api/lib/debts_api/v0/fsr_form_transform/enhanced_expense_calculator.rb b/modules/debts_api/lib/debts_api/v0/fsr_form_transform/enhanced_expense_calculator.rb index 182838d7efe..57aa7ad580b 100644 --- a/modules/debts_api/lib/debts_api/v0/fsr_form_transform/enhanced_expense_calculator.rb +++ b/modules/debts_api/lib/debts_api/v0/fsr_form_transform/enhanced_expense_calculator.rb @@ -27,6 +27,12 @@ def initialize(form) @installment_contracts = @form['installmentContracts'] || [] @utility_records = @form['utilityRecords'] || [] + if @new_rent_mortgage_attr.present? + StatsD.increment("#{DebtsApi::V0::Form5655Submission::STATS_KEY}.full_transform.expenses.new_rent_mortgage_attr") + elsif @old_rent_mortgage_attr.present? + StatsD.increment("#{DebtsApi::V0::Form5655Submission::STATS_KEY}.full_transform.expenses.old_rent_mortgage_attr") + end + @filtered_expenses = [].concat( exclude_expenses_by(@other_expenses, [FOOD]), exclude_expenses_by(@expense_records, [RENT, MORTGAGE_PAYMENT])