Skip to content
Snippets Groups Projects
Unverified Commit de1f8165 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Log an alert when the queue hits an unhandled exception

parent 21dd03a2
Branches eileenmcnaughton-patch-1
No related tags found
No related merge requests found
......@@ -101,6 +101,7 @@ class Run extends \Civi\Api4\Generic\AbstractAction {
catch (\Throwable $t) {
$errors++;
$message = sprintf('Queue-item raised unhandled exception (%s: %s)', get_class($t), $t->getMessage());
\Civi::log('queue')->alert($message, ['subject' => 'Queue-item raised unhandled exception (' . get_class($t)]);
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment