Open Bug 1238262 Opened 10 years ago

Use an ENV variable to display the full stack on die

Categories

(Bugzilla :: Bugzilla-General, enhancement)

enhancement
Not set
normal

Tracking

()

People

(Reporter: LpSolit, Unassigned)

Details

Currently, you have to manually uncomment this line in Bugzilla.pm to get the full stack when Bugzilla dies: #$::SIG{__DIE__} = i_am_cgi() ? \&CGI::Carp::confess : \&Carp::confess; It would be easier in a development environment to simply pass an ENV variable to enable it. Note that we have the same problem here as in bug 1232297. When using plackup, i_am_cgi() is always false at this point, because this code is called by app.psgi itself. If that's doable, app.psgi or plackup should pass an ENV variable so that we know we are going to compile a CGI script. Or maybe simply look at $ENV{BZ_PLACK}, as plackup is only compiling CGI scripts.
You need to log in before you can comment on or make changes to this bug.