From ef7bb430b7fb14b7d307a2c328fadcdcc9f73701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Thu, 7 Dec 2023 11:47:53 +0100 Subject: [PATCH] Lower setup check level from error/warning to warning/info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/SetupChecks/LogErrors.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SetupChecks/LogErrors.php b/lib/SetupChecks/LogErrors.php index abea9ab8..6681ebac 100644 --- a/lib/SetupChecks/LogErrors.php +++ b/lib/SetupChecks/LogErrors.php @@ -74,7 +74,7 @@ public function run(): SetupResult { if (array_sum($count) === 0) { return SetupResult::success($this->l10n->t('No errors in the logs since %s', $this->dateFormatter->formatDate($limit))); } elseif ($count[self::LEVEL_ERROR] + $count[self::LEVEL_FATAL] > 0) { - return SetupResult::error( + return SetupResult::warning( $this->l10n->n( '%n error in the logs since %s', '%n errors in the logs since %s', @@ -83,7 +83,7 @@ public function run(): SetupResult { ) ); } else { - return SetupResult::warning( + return SetupResult::info( $this->l10n->n( '%n warning in the logs since %s', '%n warnings in the logs since %s'.json_encode($count),