X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/cb114b288edd36558e0763fff34e331b2994d534..3cc8ad871fc62723dbb9879a004a2af49d21bfef:/SL/Dispatcher.pm diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index abba153eb..2c0539bb8 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -16,9 +16,6 @@ use SL::Locale; use SL::Common; use Form; use List::Util qw(first); -use Moose; -use Rose::DB; -use Rose::DB::Object; use File::Basename; # Trailing new line is added so that Perl will not add the line @@ -85,6 +82,10 @@ sub pre_startup_setup { %::myconfig = (); %::called_subs = (); # currently used for recursion detection } + + $SIG{__WARN__} = sub { + $::lxdebug->warn(@_); + } } sub pre_startup_checks { @@ -97,6 +98,7 @@ sub pre_startup { } sub require_main_code { + $::lxdebug->enter_sub; my ($script, $suffix) = @_; eval { @@ -118,6 +120,7 @@ sub require_main_code { }; $::form->error($EVAL_ERROR) if ($EVAL_ERROR); } + $::lxdebug->leave_sub; } sub handle_request {