Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8687

Show
Ignore:
Timestamp:
01/22/08 00:09:08 (6 months ago)
Author:
david
Message:

Log an error to the console when the memcache server is raising

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activesupport/lib/active_support/cache/mem_cache_store.rb

    r8546 r8687  
    1616        super 
    1717        @data.get(key, raw?(options)) 
    18       rescue MemCache::MemCacheError 
     18      rescue MemCache::MemCacheError => e 
     19        logger.error("MemCacheError (#{e}): #{e.message}") 
    1920        nil 
    2021      end 
     
    2324        super 
    2425        @data.set(key, value, expires_in(options), raw?(options)) 
    25       rescue MemCache::MemCacheError 
     26      rescue MemCache::MemCacheError => e 
     27        logger.error("MemCacheError (#{e}): #{e.message}") 
    2628        nil 
    2729      end 
     
    3032        super 
    3133        @data.delete(key, expires_in(options)) 
    32       rescue MemCache::MemCacheError 
     34      rescue MemCache::MemCacheError => e 
     35        logger.error("MemCacheError (#{e}): #{e.message}") 
    3336        nil 
    3437      end