From 1dcc8559cfce1729e37f60351c8a9103be516020 Mon Sep 17 00:00:00 2001 From: Robin Windey Date: Mon, 23 Jan 2023 17:12:15 +0000 Subject: Log to error_log in fatal case Signed-off-by: Robin Windey --- lib/private/Log.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/Log.php b/lib/private/Log.php index c139510a3b3..bee36575520 100644 --- a/lib/private/Log.php +++ b/lib/private/Log.php @@ -359,6 +359,7 @@ class Log implements ILogger, IDataLogger { $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()); } } -- cgit v1.2.3