Module: CI::Queue::Redis::Base::RedisInstrumentation

Defined in:
lib/ci/queue/redis/base.rb

Instance Method Summary collapse

Instance Method Details

#call(command, redis_config) ⇒ Object



15
16
17
18
19
20
# File 'lib/ci/queue/redis/base.rb', line 15

def call(command, redis_config)
  result = super
  logger = redis_config.custom[:debug_log]
  logger.info("#{command}: #{result}")
  result
end

#call_pipelined(commands, redis_config) ⇒ Object



22
23
24
25
26
27
# File 'lib/ci/queue/redis/base.rb', line 22

def call_pipelined(commands, redis_config)
  result = super
  logger = redis_config.custom[:debug_log]
  logger.info("#{commands}: #{result}")
  result
end