Skip to content

Commit

Permalink
Don't log an error on Memcached::NotFound since it's the normal behav…
Browse files Browse the repository at this point in the history
…ior when a key can't be found
  • Loading branch information
packagethief committed Aug 24, 2008
1 parent a8224ae commit d931550
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/active_support/cache/libmemcached_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def initialize(*addresses)
def read(key, options = nil)
super
@cache.get(key, marshal?(options))
rescue Memcached::NotFound
nil
rescue Memcached::Error => e
log_error(e)
nil
Expand Down

0 comments on commit d931550

Please sign in to comment.