From 1857452fa64ce29d16080828149f5682e481e62f Mon Sep 17 00:00:00 2001 From: Chris Gaffney Date: Thu, 16 Jan 2025 13:09:00 -0500 Subject: [PATCH] Fix Puma config for newer Puma and Honeybadger --- config.ru | 8 ++++++-- config/puma.rb | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config.ru b/config.ru index c14237f..412ff08 100644 --- a/config.ru +++ b/config.ru @@ -5,8 +5,12 @@ Bundler.require use Rack::SslEnforcer if ENV["RACK_ENV"] == "production" -Honeybadger.exception_filter do |notice| - notice[:exception].class < Sinatra::NotFound +Honeybadger.configure do |config| + config.before_notify do |notice| + if notice.exception.class < Sinatra::NotFound + notice.halt! + end + end end require "./no_phone" diff --git a/config/puma.rb b/config/puma.rb index 52541ba..df589bd 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -4,6 +4,5 @@ preload_app! -rackup DefaultRackup port ENV["PORT"] || 3000 environment ENV["RACK_ENV"] || "development"