mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Make sure MemCacheStore logger exists
This commit is contained in:
parent
d18ff1b7ef
commit
eed89e65b6
1 changed files with 3 additions and 3 deletions
|
@ -64,7 +64,7 @@ module ActiveSupport
|
|||
@data.get(key, raw?(options))
|
||||
end
|
||||
rescue MemCache::MemCacheError => e
|
||||
logger.error("MemCacheError (#{e}): #{e.message}")
|
||||
logger.error("MemCacheError (#{e}): #{e.message}") if logger
|
||||
nil
|
||||
end
|
||||
|
||||
|
@ -85,7 +85,7 @@ module ActiveSupport
|
|||
response == Response::STORED
|
||||
end
|
||||
rescue MemCache::MemCacheError => e
|
||||
logger.error("MemCacheError (#{e}): #{e.message}")
|
||||
logger.error("MemCacheError (#{e}): #{e.message}") if logger
|
||||
false
|
||||
end
|
||||
|
||||
|
@ -95,7 +95,7 @@ module ActiveSupport
|
|||
response == Response::DELETED
|
||||
end
|
||||
rescue MemCache::MemCacheError => e
|
||||
logger.error("MemCacheError (#{e}): #{e.message}")
|
||||
logger.error("MemCacheError (#{e}): #{e.message}") if logger
|
||||
false
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue