[deploy] Refactor:Send a Couple More Errors to Honeybadger (#9223)

This commit is contained in:
Molly Struve 2020-07-09 10:53:16 -05:00 committed by GitHub
parent fad259b1c8
commit 6cfbbaeb39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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