Skip to content

Commit c386aeb

Browse files
committed
Fix d800b76 E Fri Jan 26.. Claus..Symfony\Component\EventDispatcher: wrap calling the handlers into a try-catch block
1 parent 544d41f commit c386aeb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

symfony/event-dispatcher/EventDispatcher.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,10 @@ protected function callListeners(iterable $listeners, string $eventName, object
226226
// it is just not acceptable in such a heterogeneous infra
227227
// structure like NC that one badly designed listener stops all
228228
// others.
229-
\OC::$server->get(\OCP\ILogger::class)->logException(new Exception('Exception during event dispatch', 0, $t));
229+
\OC::$server->get(\Psr\Log\LoggerInterface::class)->error(
230+
'Exception during event dispatch',
231+
[ 'exception' => new \Exception('Exception during event dispatch', 0, $t) ],
232+
);
230233
}
231234
}
232235
}

0 commit comments

Comments
 (0)