Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't run middleware in Sinatra when not configured (#629)
While #549 has removed middleware loading for Rails unless configured, it has also removed the code that prevented the middleware from executing unless configured. A similar change is also required for Sinatra, because currently it tries to execute when not configured. When a Sinatra app does not use i18n gem and has user feedback disabled, it errs with a "I18n::InvalidLocale - :en is not a valid locale" exception from ERB, because Honeybadger tries to render the feedback form.
- Loading branch information