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

--- Comment #1 from Kyle M Hall (khall) <[email protected]> ---
Created attachment 202820
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202820&action=edit
Bug 43166: Add Koha::CarpAlways to append stack traces to warnings and errors

Some warnings and errors are very difficult to track down because the
message gives only the immediate file and line number, not the call
path that led there. The CPAN module Carp::Always solves this, but it
can only be enabled process-wide, which floods the logs when all you
care about is one script, and it is not a Koha dependency.

This patch adds Koha::CarpAlways, which appends a full stack trace to
warnings and errors using core Carp, scoped to the scripts listed in
the new carp_always entry in koha-conf.xml or in the KOHA_CARP_ALWAYS
environment variable. The value is a space or comma separated list of
script names, or 1 or * for all scripts.

This patch adds the module only. It is wired into Plack, Koha::Script
and the SIP server by the follow-up patches.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to