diff options
author | Simon L <szaimen@e.mail.de> | 2023-05-23 23:02:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-23 23:02:18 +0200 |
commit | 3a9abb256ebb4168e2a9d0bef1cf5e34390c25e9 (patch) | |
tree | d35ddfcd5cfb9e319cfe39eb6ed66da5a6a0f440 /lib | |
parent | 0fca8238dd86d572f0f15eaa8e8a5ea836cc76bf (diff) | |
parent | 1dcc8559cfce1729e37f60351c8a9103be516020 (diff) | |
download | nextcloud-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.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()); } } |