https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39740 --- Comment #61 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 186199 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=186199&action=edit Bug 39740: Adjust koha-plack and koha-z3950-responder Changes to koha-plack - Check is_test_system and -development for stack trace - Add check on set $environment for debugger - Move export to do_instance, remove three local's NOTE: GIT_INSTALL ie exported for koha-plack ONLY! The debian scripts call is_git_install. Changes to koha-z3950-responder - debugger needs test_system flag - Rearrange exports before calling start_z3950 and friends. Test plan: Check/adjust git_install and test_system in koha-conf.xml for used instances. cp debian/scripts/koha-functions.sh /usr/share/koha/bin/ cp debian/scripts/koha-* /usr/sbin/ cp debian/templates/plack.psgi /etc/koha/plack.psgi Add a die in e.g. opac/opac-main.pl. Set test_system to 1 in koha-conf.xml or export TEST_SYSTEM=1 in your environment. Restart Plack. Hit opac-main. Do you see a stack trace? Export TEST_SYSTEM=0. Restart Plack. Hit opac-main again. You should not see a stack trace. Start koha-z3950-responder with/without debug flag. Works as expected? Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> -- You are receiving this mail because: You are watching all bug changes.