Class: FbRails::LogSubscriber

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

Instance Method Summary collapse

Instance Method Details

#request(event) ⇒ Object



3
4
5
6
# File 'lib/fb_rails/log_subscriber.rb', line 3

def request(event)
  name = color('FbRails (%.1fms)' % event.duration, CYAN, true)
  info "  #{name} #{event.payload[:http_verb].to_s.upcase} #{event.payload[:request_uri]}"
end