1
0
Fork 0
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:
Nicholas Stuart 2021-08-24 10:09:07 -07:00
parent 2e097e86d2
commit 2c15e00a2c
No known key found for this signature in database
GPG key ID: 701DDAA370AA2E99
2 changed files with 3 additions and 0 deletions

View file

@ -3,6 +3,8 @@
Previously, if you provided a `error_handler` to `redis_cache_store`, any errors thrown by
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.

View file

@ -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',