diff -u b/core/includes/bootstrap.inc b/core/includes/bootstrap.inc --- b/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -297,9 +297,7 @@ if (\Drupal::hasService('cache.bootstrap')) { \Drupal::cache('bootstrap')->set('drupal_get_filename:missing', $missing, REQUEST_TIME); } - if (\Drupal::hasService('logger.factory')) { - \Drupal::logger('system')->error('The following @type is missing from the file system: @name', array('@type' => $type, '@name' => $name)); - } + trigger_error(SafeMarkup::format('The following @type is missing from the file system: @name', array('@type' => $type, '@name' => $name)), E_USER_WARNING); } }