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:
parent
419d3462de
commit
cbb793d620
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue