We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d36436 commit 95a648cCopy full SHA for 95a648c
box/jobs/fetch_upcoming_statements.rb
@@ -48,6 +48,10 @@ def fetch_for_account(account)
48
rescue Sequel::NoMatchingRow => _ex
49
Box.logger.error("[Jobs::FetchUpcomingStatements] Could not find Account ##{account.id}")
50
rescue Epics::Error::BusinessError => ex
51
+ if ENV["SENTRY_DSN"]
52
+ Sentry.add_attachment(filename: "#{account.id}_vmk_mt942_#{SecureRandom.uuid}", bytes: vmk_data) if !vmk_data.empty?
53
+ Sentry.capture_exception(ex)
54
+ end
55
# The BusinessError can occur when no new statements are available
56
Box.logger.error("[Jobs::FetchUpcomingStatements] EBICS error. id=#{account.id} reason='#{ex.message}'")
57
end
0 commit comments