mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Address PR comments.
This commit is contained in:
parent
2e097e86d2
commit
2c15e00a2c
2 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
|||
the error handler would be rescued and logged only. Removed the `rescue` clause from `handle_exception`
|
||||
to allow these to be thrown.
|
||||
|
||||
*Nicholas A. Stuart*
|
||||
|
||||
* Allow entirely opting out of deprecation warnings.
|
||||
|
||||
Previously if you did `app.config.active_support.deprecation = :silence`, some work would
|
||||
|
|
|
@ -528,6 +528,7 @@ config.cache_store = :redis_cache_store, { url: cache_servers,
|
|||
read_timeout: 0.2, # Defaults to 1 second
|
||||
write_timeout: 0.2, # Defaults to 1 second
|
||||
reconnect_attempts: 1, # Defaults to 0
|
||||
|
||||
error_handler: -> (method:, returning:, exception:) {
|
||||
# Report errors to Sentry as warnings
|
||||
Raven.capture_exception exception, level: 'warning',
|
||||
|
|
Loading…
Reference in a new issue