Skip to content

Commit

Permalink
VA-86081: Add logging for BE transform expense update
Browse files Browse the repository at this point in the history
  • Loading branch information
maxx1128 committed Sep 6, 2024
1 parent a9a1489 commit 830d579
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Check failure on line 31 in modules/debts_api/lib/debts_api/v0/fsr_form_transform/enhanced_expense_calculator.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/LineLength: Line is too long. [125/120]
elsif @old_rent_mortgage_attr.present?
StatsD.increment("#{DebtsApi::V0::Form5655Submission::STATS_KEY}.full_transform.expenses.old_rent_mortgage_attr")

Check failure on line 33 in modules/debts_api/lib/debts_api/v0/fsr_form_transform/enhanced_expense_calculator.rb

View workflow job for this annotation

GitHub Actions / Linting and Security

Layout/LineLength: Line is too long. [125/120]
end

@filtered_expenses = [].concat(
exclude_expenses_by(@other_expenses, [FOOD]),
exclude_expenses_by(@expense_records, [RENT, MORTGAGE_PAYMENT])
Expand Down

0 comments on commit 830d579

Please sign in to comment.