From 48fe4d12bf1fbdc7634ab3a4a3da96458cfb46e1 Mon Sep 17 00:00:00 2001 From: Ibrahim BinAlshikh Date: Tue, 17 Oct 2023 10:07:59 +0300 Subject: [PATCH] Added Support for Showing Stack Trace for Tasks --- webfiori/framework/scheduler/AbstractTask.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webfiori/framework/scheduler/AbstractTask.php b/webfiori/framework/scheduler/AbstractTask.php index e9ab0cb98..9d81ed8c8 100644 --- a/webfiori/framework/scheduler/AbstractTask.php +++ b/webfiori/framework/scheduler/AbstractTask.php @@ -1504,8 +1504,9 @@ private function logExeException(Throwable $ex, string $meth = '') { TasksManager::log('Exception message: '.$ex->getMessage()); TasksManager::log('Thrown in: '.Util::extractClassName($ex->getFile())); TasksManager::log('Line: '.$ex->getLine()); - - + TasksManager::log("Stack Trace:"); + TasksManager::log($ex->getTraceAsString()); + if ($meth == 'execute') { $this->isSuccess = false; }