提交 f3748c88 编写于 作者: A Arthur Neves

Add 'e' var on rescue DalliError, in order to log it

上级 ca98d0d4
......@@ -85,7 +85,7 @@ def increment(name, amount = 1, options = nil) # :nodoc:
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 @@ def decrement(name, amount = 1, options = nil) # :nodoc:
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册