aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2023-05-23 23:02:18 +0200
committerGitHub <noreply@github.com>2023-05-23 23:02:18 +0200
commit3a9abb256ebb4168e2a9d0bef1cf5e34390c25e9 (patch)
treed35ddfcd5cfb9e319cfe39eb6ed66da5a6a0f440 /lib
parent0fca8238dd86d572f0f15eaa8e8a5ea836cc76bf (diff)
parent1dcc8559cfce1729e37f60351c8a9103be516020 (diff)
downloadnextcloud-server-3a9abb256ebb4168e2a9d0bef1cf5e34390c25e9.tar.gz
nextcloud-server-3a9abb256ebb4168e2a9d0bef1cf5e34390c25e9.zip
Merge pull request #36316 from nextcloud/improve-fatal-logging
Log to `error_log` in fatal case
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Log.php1
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());
}
}