diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index d54f07cae75164a37ad0b4816510d8a33c3a14fd..676546c31f1d299f40ee8bcb4a5d00f31a4ea2c1 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -861,7 +861,7 @@ protected function initializeContainer() { // If needs dumping flag was set, dump the container. if ($this->containerNeedsDumping && !$this->cacheDrupalContainer($container_definition)) { - $this->container->get('logger.factory')->get('DrupalKernel')->notice('Container cannot be saved to cache.'); + $this->container->get('logger.factory')->get('DrupalKernel')->error('Container cannot be saved to cache.'); } return $this->container; diff --git a/core/modules/system/src/Tests/Update/UpdatePathTestBaseTest.php b/core/modules/system/src/Tests/Update/UpdatePathTestBaseTest.php index e62dc87da1f3f5635e0749af73168c0cbdb4cfb2..60d1054cdcad3f57ddb9456f16a34f172c9754e6 100644 --- a/core/modules/system/src/Tests/Update/UpdatePathTestBaseTest.php +++ b/core/modules/system/src/Tests/Update/UpdatePathTestBaseTest.php @@ -82,6 +82,17 @@ public function testUpdateHookN() { // Increment the schema version. \Drupal::state()->set('update_test_schema_version', 8001); $this->runUpdates(); + + $select = \Drupal::database()->select('watchdog'); + $select->orderBy('wid', 'DESC'); + $select->range(0, 5); + $select->fields('watchdog', ['message']); + + $container_cannot_be_saved_messages = array_filter(iterator_to_array($select->execute()), function($row) { + return strpos($row->message, 'Container cannot be saved to cache.') !== FALSE; + }); + $this->assertEqual([], $container_cannot_be_saved_messages); + // Ensure schema has changed. $this->assertEqual(drupal_get_installed_schema_version('update_test_schema', TRUE), 8001); // Ensure the index was added for column a. diff --git a/update.php b/update.php index 5222b967acbcf1e6a1701ea25699ffbdcb04fada..42adef25d67d644b1ccae24c2e0d5af96a8519b3 100644 --- a/update.php +++ b/update.php @@ -13,7 +13,7 @@ $autoloader = require_once 'autoload.php'; -$kernel = new UpdateKernel('prod', $autoloader); +$kernel = new UpdateKernel('prod', $autoloader, FALSE); $request = Request::createFromGlobals(); $response = $kernel->handle($request);