Bugzilla – Attachment 72341 Details for
Bug 20079
Display stack trace for development installations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20079: Display stack trace for development installations
Bug-20079-Display-stack-trace-for-development-inst.patch (text/plain), 1.30 KB, created by
Jonathan Druart
on 2018-03-01 17:15:26 UTC
(
hide
)
Description:
Bug 20079: Display stack trace for development installations
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-03-01 17:15:26 UTC
Size:
1.30 KB
patch
obsolete
>From c335ae2ef7633092c086af0e5976425877a70e52 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20079
:
70860
|
70862
|
72341
|
76892