mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 20:04:32 +02:00
log uncaught exceptions as critical
This commit is contained in:
parent
507897eec1
commit
7bfd42ac55
1 changed files with 1 additions and 1 deletions
|
@ -208,7 +208,7 @@ class ErrorHandler
|
||||||
*/
|
*/
|
||||||
private function handleException(Throwable $e): void
|
private function handleException(Throwable $e): void
|
||||||
{
|
{
|
||||||
$level = LogLevel::ERROR;
|
$level = LogLevel::CRITICAL;
|
||||||
foreach ($this->uncaughtExceptionLevelMap as $class => $candidate) {
|
foreach ($this->uncaughtExceptionLevelMap as $class => $candidate) {
|
||||||
if ($e instanceof $class) {
|
if ($e instanceof $class) {
|
||||||
$level = $candidate;
|
$level = $candidate;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue