From 98a7c184df2ea93668320592b97cbbb6f9c77334 Mon Sep 17 00:00:00 2001 From: Ryan Laddusaw Date: Mon, 9 Dec 2024 16:33:59 -0500 Subject: [PATCH 1/2] Remove honeybadger alert from health check --- config/initializers/health_monitor.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/config/initializers/health_monitor.rb b/config/initializers/health_monitor.rb index 410b23fd3..63ed39a1a 100644 --- a/config/initializers/health_monitor.rb +++ b/config/initializers/health_monitor.rb @@ -23,7 +23,6 @@ config.error_callback = proc do |e| unless e.is_a?(HealthMonitor::Providers::FileAbsenceException) Rails.logger.error "Health check failed with: #{e.message}" - Honeybadger.notify(e) end end end From 7d507c0fb61fa5135db0840934ea545909331ac2 Mon Sep 17 00:00:00 2001 From: Ryan Laddusaw Date: Mon, 9 Dec 2024 16:44:34 -0500 Subject: [PATCH 2/2] Rubocop --- config/initializers/health_monitor.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/initializers/health_monitor.rb b/config/initializers/health_monitor.rb index 63ed39a1a..50f274ea0 100644 --- a/config/initializers/health_monitor.rb +++ b/config/initializers/health_monitor.rb @@ -21,9 +21,7 @@ config.path = :health config.error_callback = proc do |e| - unless e.is_a?(HealthMonitor::Providers::FileAbsenceException) - Rails.logger.error "Health check failed with: #{e.message}" - end + Rails.logger.error "Health check failed with: #{e.message}" unless e.is_a?(HealthMonitor::Providers::FileAbsenceException) end end end