Browse Source

Log to error_log in fatal case

Signed-off-by: Robin Windey <ro.windey@gmail.com>
tags/v28.0.0beta1
Robin Windey 1 year ago
parent
commit
1dcc8559cf
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      lib/private/Log.php

+ 1
- 0
lib/private/Log.php View File

@@ -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…
Cancel
Save