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

--- Comment #6 from Kyle M Hall (khall) <[email protected]> ---
Created attachment 202825
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202825&action=edit
Bug 43166: Enable stack traces for command line scripts via Koha::Script

Any script that uses Koha::Script now installs the handlers at compile
time when its name matches the carp_always configuration. Scripts that
don't use Koha::Script can be run as 'perl -MCarp::Always script.pl'
instead.

Test Plan:
1) Apply this patch
2) In a koha shell, run:
   KOHA_CARP_ALWAYS='*' perl -MKoha::Script -e 'sub f { warn "hi" } f()'
3) Note the warning has a stack trace!
4) Run the same with KOHA_CARP_ALWAYS=0, note the trace is gone!
5) prove t/Koha/Script.t

-- 
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