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

10 lines
243 B

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