lib/cacheflow/redis.rb in cacheflow-0.1.0 vs lib/cacheflow/redis.rb in cacheflow-0.1.1
- old
+ new
@@ -11,10 +11,10 @@
end
end
class Instrumenter < ActiveSupport::LogSubscriber
def query(event)
- return unless logger.debug?
+ return if !logger.debug? || Cacheflow.silenced?
name = "%s (%.2fms)" % ["Redis", event.duration]
commands = []
event.payload[:commands].map do |op, *args|