From c335ae2ef7633092c086af0e5976425877a70e52 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 23 Jan 2018 15:54:41 -0300 Subject: [PATCH] Bug 20079: Display stack trace for development installations """The default value is development, which causes plackup to load the middleware components: AccessLog, StackTrace, and Lint unless --no-default-middleware is set.""" Test plan: Confirm that the stack trace is displayed when something is wrong (die somewhere to test) for dev installations (inside a devbox) The -E flag must remain deployment for non-dev installs --- debian/scripts/koha-plack | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/scripts/koha-plack b/debian/scripts/koha-plack index 186c162de1..58ebe595ad 100755 --- a/debian/scripts/koha-plack +++ b/debian/scripts/koha-plack @@ -91,6 +91,11 @@ start_plack() --error-log /var/log/koha/${instancename}/plack-error.log" max_requests_and_workers="--max-requests ${PLACK_MAX_REQUESTS} --workers ${PLACK_WORKERS}" + if [ "$DEV_INSTALL" = "1" ]; then + # Maybe we should switch off debug_mode if DEV_INSTALL is not set? + environment="development" + fi + if [ "$debug_mode" = "yes" ]; then environment="development" daemonize="" -- 2.11.0