diff --git a/lib/private/Log.php b/lib/private/Log.php index c139510a3b3fe..bee36575520e9 100644 --- a/lib/private/Log.php +++ b/lib/private/Log.php @@ -359,6 +359,7 @@ public function logData(string $message, array $data, array $context = []): void $context['level'] = $level; } catch (Throwable $e) { // make sure we dont hard crash if logging fails + error_log('Error when trying to log exception: ' . $e->getMessage() . ' ' . $e->getTraceAsString()); } }