mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add 'e' var on rescue DalliError, in order to log it
This commit is contained in:
parent
ca98d0d486
commit
f3748c886a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue