aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache
diff options
context:
space:
mode:
authorArthur Neves <arthurnn@gmail.com>2014-01-06 12:47:47 -0500
committerArthur Neves <arthurnn@gmail.com>2014-01-06 12:47:47 -0500
commitf3748c886a609938549fb5bf6bbe7e3d12529952 (patch)
tree7d17f57dbfe83906d53692f7d8fbe29e7cf1620b /activesupport/lib/active_support/cache
parentca98d0d48694288c46f684010c412a876abeca85 (diff)
downloadrails-f3748c886a609938549fb5bf6bbe7e3d12529952.tar.gz
rails-f3748c886a609938549fb5bf6bbe7e3d12529952.tar.bz2
rails-f3748c886a609938549fb5bf6bbe7e3d12529952.zip
Add 'e' var on rescue DalliError, in order to log it
Diffstat (limited to 'activesupport/lib/active_support/cache')
-rw-r--r--activesupport/lib/active_support/cache/mem_cache_store.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/cache/mem_cache_store.rb b/activesupport/lib/active_support/cache/mem_cache_store.rb
index 0eacc4c078..61b4f0b8b0 100644
--- a/activesupport/lib/active_support/cache/mem_cache_store.rb
+++ b/activesupport/lib/active_support/cache/mem_cache_store.rb
@@ -85,7 +85,7 @@ module ActiveSupport
instrument(:increment, name, :amount => amount) do
@data.incr(escape_key(namespaced_key(name, options)), amount)
end
- rescue Dalli::DalliError
+ rescue Dalli::DalliError => e
logger.error("DalliError (#{e}): #{e.message}") if logger
nil
end
@@ -99,7 +99,7 @@ module ActiveSupport
instrument(:decrement, name, :amount => amount) do
@data.decr(escape_key(namespaced_key(name, options)), amount)
end
- rescue Dalli::DalliError
+ rescue Dalli::DalliError => e
logger.error("DalliError (#{e}): #{e.message}") if logger
nil
end