diff --git a/core/lib/Drupal/Core/Cron.php b/core/lib/Drupal/Core/Cron.php index ef5d33793439e59f40278f85321e8daffd462d93..001aa2ef2b9f7a52232bb48ab2d10b64723d74b1 100644 --- a/core/lib/Drupal/Core/Cron.php +++ b/core/lib/Drupal/Core/Cron.php @@ -166,6 +166,9 @@ public function run() { // Release cron lock. $this->lock->release('cron'); + // Add watchdog message. + $this->logger->info('Cron run completed.'); + // Return TRUE so other functions can check if it did run successfully $return = TRUE; } @@ -183,7 +186,6 @@ protected function setCronLastTime() { // Record cron time. $request_time = $this->time->getRequestTime(); $this->state->set('system.cron_last', $request_time); - $this->logger->info('Cron run completed.'); } /**