[Koha-bugs] [Bug 27557] Add the ability to display the error that caused a 500

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 16 11:26:44 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27557

--- Comment #2 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 118293
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=118293&action=edit
Bug 27557: Display stacktrace on 500 for superlibrarian

>From pod for Plack::Middleware::StackTrace:
"""
Gathering the information for a stack trace via Devel::StackTrace is slow, and
Devel::StackTrace::WithLexicals is significantly slower still. This is not
usually a concern in development and when exceptions are rare. However, your
application may include code that's throwing and catching exceptions that
you're not aware of. Such code will run significantly slower with this module.
"""
Maybe we should avoid the stacktrace and prefer to retrieve the error
only, without the stacktrace? (but how?)

cp C4/Auth.pm /usr/share/koha/lib/C4/Auth.pm
cp debian/templates/plack.psgi /etc/koha/sites/kohadev/plack.psgi
cp errors/500.pl /usr/share/koha/intranet/cgi-bin/errors/500.pl
cp koha-tmpl/intranet-tmpl/prog/en/modules/errors/errorpage.tt
/usr/share/koha/intranet/htdocs/intranet-tmpl/prog/en/modules/errors/errorpage.tt
restart_all

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list