From 6f4c546d10b7db2b9f6f80ae78cf43203fb031cd Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Tue, 5 Jan 2021 13:00:56 +0000
Subject: [PATCH] Issue #2863464 by efpapado, cburschka, longwave, lhridley:
 Demote cron log entries from "notice" to "info"

---
 core/lib/Drupal/Core/Cron.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/lib/Drupal/Core/Cron.php b/core/lib/Drupal/Core/Cron.php
index db09c8cfb80b..59e0a67ae623 100644
--- a/core/lib/Drupal/Core/Cron.php
+++ b/core/lib/Drupal/Core/Cron.php
@@ -159,7 +159,7 @@ protected function setCronLastTime() {
     // Record cron time.
     $request_time = $this->time->getRequestTime();
     $this->state->set('system.cron_last', $request_time);
-    $this->logger->notice('Cron run completed.');
+    $this->logger->info('Cron run completed.');
   }
 
   /**
@@ -232,12 +232,12 @@ protected function invokeCronHandlers() {
     foreach ($this->moduleHandler->getImplementations('cron') as $module) {
 
       if (!$module_previous) {
-        $logger->notice('Starting execution of @module_cron().', [
+        $logger->info('Starting execution of @module_cron().', [
           '@module' => $module,
         ]);
       }
       else {
-        $logger->notice('Starting execution of @module_cron(), execution of @module_previous_cron() took @time.', [
+        $logger->info('Starting execution of @module_cron(), execution of @module_previous_cron() took @time.', [
           '@module' => $module,
           '@module_previous' => $module_previous,
           '@time' => Timer::read('cron_' . $module_previous) . 'ms',
@@ -257,7 +257,7 @@ protected function invokeCronHandlers() {
       $module_previous = $module;
     }
     if ($module_previous) {
-      $logger->notice('Execution of @module_previous_cron() took @time.', [
+      $logger->info('Execution of @module_previous_cron() took @time.', [
         '@module_previous' => $module_previous,
         '@time' => Timer::read('cron_' . $module_previous) . 'ms',
       ]);
-- 
GitLab