diff --git a/core/lib/Drupal/Core/Cron.php b/core/lib/Drupal/Core/Cron.php index acc5be39063269bd295577fbb13edb59f5d4a284..222638c24ec9166a52c281e6cd96726277a84990 100644 --- a/core/lib/Drupal/Core/Cron.php +++ b/core/lib/Drupal/Core/Cron.php @@ -104,6 +104,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; } @@ -121,7 +124,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.'); } /**