class ActionDispatch::LogSubscriber

def redirect(event)

def redirect(event)
  payload = event.payload
  info { "Redirected to #{payload[:location]}" }
  info do
    status = payload[:status]
    message = +"Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{event.duration.round}ms"
    message << "\n\n" if defined?(Rails.env) && Rails.env.development?
    message
  end
end