Skip to content

Commit

Permalink
Added Support for Showing Stack Trace for Tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane authored Oct 17, 2023
1 parent 80dbabb commit 48fe4d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webfiori/framework/scheduler/AbstractTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 48fe4d1

Please sign in to comment.