diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 2218e03a5def270de62f3a4365bce03bf3d1befd..ef53eaf4302482e2614ea16142329bb4f9cd3b6d 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -3403,12 +3403,14 @@ function _drupal_shutdown_function() { } } catch (Exception $exception) { - // If we are displaying errors, then do so with no possibility of a further uncaught exception being thrown. - require_once DRUPAL_ROOT . '/core/includes/errors.inc'; - if (error_displayable()) { + // If we are displaying errors, then do so with no possibility of a further + // uncaught exception being thrown. + require_once DRUPAL_ROOT . '/core/includes/errors.inc'; + if (error_displayable()) { print '<h1>Uncaught exception thrown in shutdown function.</h1>'; print '<p>' . _drupal_render_exception_safe($exception) . '</p><hr />'; } + error_log($exception); } }