diff options
author | Robin Windey <ro.windey@gmail.com> | 2023-01-23 17:12:15 +0000 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-05-23 17:11:52 +0200 |
commit | 1dcc8559cfce1729e37f60351c8a9103be516020 (patch) | |
tree | dc1c0ea91230e8d3155acabd7102d9bbf5375542 | |
parent | 7ec1ceb79afaf4211aabe77e5a0c7ec5fb41542c (diff) | |
download | nextcloud-server-1dcc8559cfce1729e37f60351c8a9103be516020.tar.gz nextcloud-server-1dcc8559cfce1729e37f60351c8a9103be516020.zip |
Log to error_log in fatal case
Signed-off-by: Robin Windey <ro.windey@gmail.com>
-rw-r--r-- | lib/private/Log.php | 1 |
1 files changed, 1 insertions, 0 deletions
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()); } } |