diff --git a/app/labor/email_digest.rb b/app/labor/email_digest.rb index 15713b0a0..362e7cb4b 100644 --- a/app/labor/email_digest.rb +++ b/app/labor/email_digest.rb @@ -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 diff --git a/app/lib/release_phase_notifier.rb b/app/lib/release_phase_notifier.rb index 2d854ff7f..652e47dcc 100644 --- a/app/lib/release_phase_notifier.rb +++ b/app/lib/release_phase_notifier.rb @@ -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