Class: RESTHome::LogSubscriber

Inherits:
ActiveSupport::LogSubscriber
  • Object
show all
Defined in:
lib/active_support/instrumentation.rb

Instance Method Summary collapse

Instance Method Details

#request(event) ⇒ Object



11
12
13
# File 'lib/active_support/instrumentation.rb', line 11

def request(event)
  info '%s (%.1fms) %s %s' % [event.payload[:client], event.duration, event.payload[:method].upcase, event.payload[:path]]
end