lib/rack/insight/instrumentation/instrument.rb in rack-insight-0.5.6 vs lib/rack/insight/instrumentation/instrument.rb in rack-insight-0.5.7

- old
+ new

@@ -69,19 +69,23 @@ end collectors end def start_event(method_call, arguments) - logger.debug{ "Starting event: #{method_call.context} #{method_call.kind} #{method_call.method}" } if verbose(:high) + if verbose(:high) + logger.debug{ "Starting event: #{method_call.context} #{method_call.kind} #{method_call.method}" } + end collectors_for(method_call).each do |collector| collector.before_detect(method_call, arguments) end end def finish_event(method_call, arguments, start_time, result) timing = Timing.new(@start, start_time, Time.now) - logger.debug{ "Finishing event: #{method_call.context} #{method_call.kind} #{method_call.method}" } if verbose(:high) + if verbose(:high) + logger.debug{ "Finishing event: #{method_call.context} #{method_call.kind} #{method_call.method}" } + end collectors_for(method_call).each do |collector| collector.after_detect(method_call, timing, arguments, result) end end