1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Give context to request error backtrace by showing REQUEST_METHOD and PATH_INFO as well

This commit is contained in:
Jeffrey 'jf' Lim 2016-04-11 17:08:43 +08:00
parent 419d3462de
commit cbb793d620

View file

@ -588,6 +588,7 @@ module Puma
res_body = ["Request was internally terminated early\n"]
rescue StandardError => e
STDERR.puts "#{Time.now}: error handling request: { #{ env['REQUEST_METHOD'] } #{ env['PATH_INFO'] } }:"
@events.unknown_error self, e, "Rack app"
status, headers, res_body = lowlevel_error(e, env)