Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not load middleware that's not configured in Sinatra
While honeybadger-io#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