You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/lib/docs/subscribers/request_subscriber.rb

12 lines
274 B

# frozen_string_literal: true
11 years ago
module Docs
class RequestSubscriber < Subscriber
self.namespace = 'request'
def response(event)
log "Request: #{format_url event.payload[:url]} [#{event.payload[:response].code}] [#{event.duration.round}ms]"
end
end
end