use SL::DBUpgrade2;
use SL::DB::AuthClient;
use SL::DB::BackgroundJob;
-use SL::Dispatcher;
+use SL::System::Process;
use SL::BackgroundJob::ALL;
use SL::Form;
use SL::Helper::DateTime;
if (!$ok) {
my $error = $EVAL_ERROR;
- debug("Exception during execution: ${error}");
+ $::lxdebug->message(LXDebug::WARN(), "Exception during execution: ${error}");
notify_on_failure(exception => $error);
}
if (!$ok) {
my $error = $EVAL_ERROR;
- debug("Exception during execution: ${error}");
+ $::lxdebug->message(LXDebug::WARN(), "Exception during execution: ${error}");
notify_on_failure(exception => $error);
}
clean_before_sleeping();
- if (SL::Dispatcher::_memory_usage_is_too_high()) {
+ if (SL::System::Process::memory_usage_is_too_high()) {
+ debug("Memory usage too high - exiting.");
return;
}