[deploy] Refactor:Send a Couple More Errors to Honeybadger (#9223)
This commit is contained in:
parent
fad259b1c8
commit
6cfbbaeb39
2 changed files with 3 additions and 2 deletions
|
|
@ -18,7 +18,8 @@ class EmailDigest
|
|||
|
||||
DigestMailer.with(user: user, articles: articles).digest_email.deliver_now
|
||||
rescue StandardError => e
|
||||
Rails.logger.error("Email issue: #{e}")
|
||||
Honeybadger.context({ user_id: user.id, article_ids: articles.map(&:id) })
|
||||
Honeybadger.notify(e)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@ class ReleasePhaseNotifier
|
|||
|
||||
client.ping("Release Phase Failed: #{ENV['FAILED_COMMAND']}")
|
||||
rescue Slack::Notifier::APIError => e
|
||||
Rails.logger.info("Slack API error occured: #{e.message}")
|
||||
Honeybadger.notify(e)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue