114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# File 'app/sidekiq/evss/disability_compensation_form/form526_document_upload_failure_email.rb', line 114
def log_mailer_dispatch(log_info, submission, email_response = {})
StatsD.increment("#{STATSD_METRIC_PREFIX}.success")
Rails.logger.info('Form526DocumentUploadFailureEmail notification dispatched', log_info)
cl = caller_locations.first
call_location = Logging::CallLocation.new(ZSF_DD_TAG_FUNCTION, cl.path, cl.lineno)
zsf_monitor = ZeroSilentFailures::Monitor.new(Form526Submission::ZSF_DD_TAG_SERVICE)
zsf_monitor.log_silent_failure_avoided(
log_info.merge(email_confirmation_id: email_response&.id),
submission.user_account_id,
call_location:
)
end
|