diff options
author | Joshua Peek <josh@joshpeek.com> | 2010-04-07 15:07:40 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-04-07 15:08:23 -0500 |
commit | eed89e65b6320a59115da0c5ef004c727e0f9cbf (patch) | |
tree | 3c5c03c2955aa8d87cd6173f28c7efcac9b89b7e /activesupport/lib | |
parent | d18ff1b7efd96e7c08bc1a15137735be45f87e07 (diff) | |
download | rails-eed89e65b6320a59115da0c5ef004c727e0f9cbf.tar.gz rails-eed89e65b6320a59115da0c5ef004c727e0f9cbf.tar.bz2 rails-eed89e65b6320a59115da0c5ef004c727e0f9cbf.zip |
Make sure MemCacheStore logger exists
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/cache/mem_cache_store.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/cache/mem_cache_store.rb b/activesupport/lib/active_support/cache/mem_cache_store.rb index d84a62ca2d..c56fedc12e 100644 --- a/activesupport/lib/active_support/cache/mem_cache_store.rb +++ b/activesupport/lib/active_support/cache/mem_cache_store.rb @@ -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 |