From ee71d3153423b1008bcfcf861dcea48fe056a618 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 5 Jun 2013 18:26:57 +0200 Subject: [PATCH] =?utf8?q?Stacktrace=20an=20Exception=20anh=C3=A4ngen=20(?= =?utf8?q?=C3=BCber=20Konfigurationssetting=20einschaltbar)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Dispatcher.pm | 3 +++ config/kivitendo.conf.default | 3 +++ 2 files changed, 6 insertions(+) diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 93d3a18e6..a52e4bd4b 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -16,6 +16,7 @@ BEGIN { unshift @INC, $exe_dir; } +use Carp; use CGI qw( -no_xhtml); use Config::Std; use DateTime; @@ -128,6 +129,8 @@ sub pre_startup_setup { $::lxdebug->warn(@_); }; + $SIG{__DIE__} = sub { Carp::confess( @_ ) } if $::lx_office_conf{debug}->{backtrace_on_die}; + $self->_cache_file_modification_times; } diff --git a/config/kivitendo.conf.default b/config/kivitendo.conf.default index 4e4919d50..382e565a7 100644 --- a/config/kivitendo.conf.default +++ b/config/kivitendo.conf.default @@ -301,3 +301,6 @@ keep_installation_unlocked = 0 # be made unique by appending a random GET parameter. This will cause # the web browser to always reload the resources. auto_reload_resources = 0 + +# If set to 1 each exception will include a full stack backtrace. +backtrace_on_die = 0 -- 2.20.1