Class: LookOfPerformance::LogSubscriber

Inherits:
ActiveSupport::LogSubscriber
  • Object
show all
Defined in:
lib/look_of_performance/log_subscriber.rb

Instance Method Summary collapse

Instance Method Details

#process_action(event) ⇒ Object



3
4
5
6
7
8
# File 'lib/look_of_performance/log_subscriber.rb', line 3

def process_action(event)
  output = Output.new(event.duration)

  return unless output.sendable?
  info output.to_s
end