Skip to content

Commit

Permalink
profile outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
fetep committed Sep 1, 2011
1 parent 9bd5e7f commit d593ffe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/logstash/outputs/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def handle(event)
return
end

event.profile_start(to_s) if @logger.level == Logger::DEBUG
receive(event)
event.profile_end(to_s) if @logger.level == Logger::DEBUG
end # def handle
end # class LogStash::Outputs::Base

0 comments on commit d593ffe

Please sign in to comment.