This is a row of initializers we use in all our apps in production.
Enable lograge for denser logs (so papertrail doesn't go over quota)
Set up basic auth if the BASIC_AUTH
env variable is set. It is expected to be formatted like user:password
.
Reports missing translations as errors to error reporting.
Reports unpermitted parameters as errors to error reporting.
Reports rails deprecation warnings as errors to error reporting.
Disables rack-timeout
-logging. It's very verbose, and we don't use it.
Don't report errors caused by bots to Rollbar.
Add this line to your application's Gemfile:
gem 'denkungsart-production', group: :production
- Generalize error reporting to not be dependent on Rollbar, but continue to default to Rollbar.
- Add support for Sentry.
- Don't report errors caused by bots to Rollbar
- Disable
rack-timeout
-logging
- Report missing translations when using ActionView::TranslationHelper shortcuts
- Report missing translations as errors instead of warning.
- Initial extraction
The gem is available as open source under the terms of the MIT License.