We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 429d1c6 commit d3732c0Copy full SHA for d3732c0
rack/rack_ougai_logger.rb
@@ -41,7 +41,7 @@ def create_log(env, status, headers)
41
path: env[PATH_INFO],
42
query: env[QUERY_STRING],
43
status: status.to_i,
44
- duration: headers["X-Runtime"]
+ duration: headers&.dig("X-Runtime")
45
}
46
end
47
0 commit comments