From f60d3b85ef41ee14737687c9a8e74debdb67dae3 Mon Sep 17 00:00:00 2001 From: Tonksthebear Date: Tue, 26 Mar 2024 11:37:17 -0700 Subject: [PATCH] Add back logging that is occurring --- .../app/models/mobile/v0/adapters/vaos_v2_appointment.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/mobile/app/models/mobile/v0/adapters/vaos_v2_appointment.rb b/modules/mobile/app/models/mobile/v0/adapters/vaos_v2_appointment.rb index d9368af6af4..bbaa6d8fe53 100644 --- a/modules/mobile/app/models/mobile/v0/adapters/vaos_v2_appointment.rb +++ b/modules/mobile/app/models/mobile/v0/adapters/vaos_v2_appointment.rb @@ -406,6 +406,14 @@ def parse_phone(phone) } end + unless phone.nil? + # this logging is intended to be temporary. Remove if it's not occurring + Rails.logger.warn( + 'mobile appointments failed to parse VAOS V2 phone number', + phone: + ) + end + { area_code: nil, number: nil, extension: nil } end