mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #36316 from nextcloud/improve-fatal-logging
Log to `error_log` in fatal case
This commit is contained in:
commit
3a9abb256e
1 changed files with 1 additions and 0 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue