diff --git a/core/includes/errors.inc b/core/includes/errors.inc index 8b16e4d..17d4e7c 100644 --- a/core/includes/errors.inc +++ b/core/includes/errors.inc @@ -122,7 +122,7 @@ function error_displayable($error = NULL) { * @param bool $fatal * An error is fatal in case: * - An exception is thrown and not caught by something else. - * - A recoverable fatal error, which is a fatal error + * - A recoverable fatal error, which is a fatal error. */ function _drupal_log_error($error, $fatal = FALSE) { $is_installer = drupal_installation_attempted(); @@ -171,8 +171,8 @@ function _drupal_log_error($error, $fatal = FALSE) { } } - // Ensure to log out to error log for fatals, so developers can find the - // problems. + // Ensure to log out to error log for fatals, so developers can find and debug + // the problems if ($fatal) { error_log(sprintf('%s: %s in %s on line %d', $error['%type'], $error['@message'], $error['%file'], $error['%line'])); } diff --git a/core/modules/simpletest/src/TestBase.php b/core/modules/simpletest/src/TestBase.php index 5a30ee7..52d0be1 100644 --- a/core/modules/simpletest/src/TestBase.php +++ b/core/modules/simpletest/src/TestBase.php @@ -821,7 +821,7 @@ protected function assertIdenticalObject($object1, $object2, $message = '', $gro * @return bool * TRUE if the assertion succeeded, FALSE otherwise. * - * @see TestBase::prepareEnvironment() + * @see \Drupal\simpletest\TestBase::prepareEnvironment() * @see \Drupal\Core\DrupalKernel::bootConfiguration() */ protected function assertNoErrorsLogged() { @@ -831,7 +831,7 @@ protected function assertNoErrorsLogged() { } /** - * Asserts that a specific error have been logged to the PHP error.log. + * Asserts that a specific error has been logged to the PHP error log. * * @param string $error_message * The expected error message. @@ -839,7 +839,7 @@ protected function assertNoErrorsLogged() { * @return bool * TRUE if the assertion succeeded, FALSE otherwise. * - * @see TestBase::prepareEnvironment() + * @see \Drupal\simpletest\TestBase::prepareEnvironment() * @see \Drupal\Core\DrupalKernel::bootConfiguration() */ protected function assertErrorLogged($error_message) { @@ -849,7 +849,6 @@ protected function assertErrorLogged($error_message) { } $content = file_get_contents($error_log_filename); - debug($content); $rows = explode("\n", $content); // We iterate over the rows in order to be able to remove the logged error