@@ -174,7 +174,7 @@ function _drupal_log_error($error, $fatal = FALSE) {
// implementations to use it.
\Drupal::logger('php')->log($severity,'%type: @message in %function (line %line of %file) @backtrace_string.',$error+['backtrace'=>$backtrace,'exception'=>$exception,'severity_level'=>$severity]);
}
catch(\Exception$e){
catch(\Throwable){
// We can't log, for example because the database connection is not
// available. At least try to log to PHP error log.
error_log(strtr('Failed to log error: '.Error::DEFAULT_ERROR_MESSAGE.' @backtrace_string',$error));
...
...
@@ -223,12 +223,16 @@ function _drupal_log_error($error, $fatal = FALSE) {
}
// Attempt to reduce verbosity by removing DRUPAL_ROOT from the file path
// in the message. This does not happen for (false) security.