Skip to content

Commit

Permalink
Easier for Rubymine to parse
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling committed Sep 4, 2012
1 parent 124ab7b commit 18c88a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/rack/insight/instrumentation/instrument.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def collectors_for(method_call)
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)
Expand All @@ -80,7 +82,9 @@ def start_event(method_call, arguments)

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
Expand Down

0 comments on commit 18c88a6

Please sign in to comment.