lib/kiev/rack/request_logger.rb in kiev-2.8.0 vs lib/kiev/rack/request_logger.rb in kiev-3.0.0
- old
+ new
@@ -83,10 +83,10 @@
end
params = ParamFilter.filter(params, config.filtered_params, config.ignored_params)
data = {
- host: request.host, # env["HTTP_HOST"] || env["HTTPS_HOST"],
+ request_host: request.host, # env["HTTP_HOST"] || env["HTTPS_HOST"],
params: params.empty? ? nil : params, # env[Rack::QUERY_STRING],
ip: request.ip, # split_http_x_forwarded_headers(env) || env["REMOTE_ADDR"]
user_agent: env[HTTP_USER_AGENT],
status: status,
request_duration: ((Time.now.to_f - began_at) * 1000).round(3),