lib/cacheflow/memcached.rb in cacheflow-0.1.0 vs lib/cacheflow/memcached.rb in cacheflow-0.1.1

- old
+ new

@@ -12,10 +12,10 @@ end end class Instrumenter < ActiveSupport::LogSubscriber def query(event) - return unless logger.debug? + return if !logger.debug? || Cacheflow.silenced? name = "%s (%.2fms)" % ["Memcached", event.duration] debug " #{color(name, BLUE, true)} #{event.payload[:op].to_s.upcase} #{event.payload[:args].join(" ")}" end end