From 09721bcb4e2f367b28eda933979726c1068b3e00 Mon Sep 17 00:00:00 2001
From: Frol <frolfrolenko@o-s-i.org>
Date: Wed, 1 Sep 2021 15:12:49 +0300
Subject: [PATCH] [BUGFIX] T#10402 - Errors on a project

---
 Classes/Service/ConfigurationService.php | 2 +-
 Classes/Service/PageService.php          | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Classes/Service/ConfigurationService.php b/Classes/Service/ConfigurationService.php
index 36daf94..2443fd2 100644
--- a/Classes/Service/ConfigurationService.php
+++ b/Classes/Service/ConfigurationService.php
@@ -99,7 +99,7 @@ class ConfigurationService extends FluxService implements SingletonInterface
             // of returning ALL paths here, an empty array is the proper return value.
             // However, dispatch a debug message to inform integrators of the problem.
             GeneralUtility::makeInstance(LogManager::class)->getLogger(__CLASS__)->log(
-                GeneralUtility::SYSLOG_SEVERITY_NOTICE,
+                \TYPO3\CMS\Core\Log\LogLevel::NOTICE,
                 'Template paths have been attempted fetched using an empty value that is NOT NULL in ' .
                 get_class($this) . '. This indicates a potential problem with your TypoScript configuration - a ' .
                 'value which is expected to be an array may be defined as a string. This error is not fatal but may ' .
diff --git a/Classes/Service/PageService.php b/Classes/Service/PageService.php
index 77fe365..28f3fdc 100755
--- a/Classes/Service/PageService.php
+++ b/Classes/Service/PageService.php
@@ -227,13 +227,13 @@ class PageService implements SingletonInterface
 
                     if (false === $form instanceof Form) {
                         $logger->log(
-                            GeneralUtility::SYSLOG_SEVERITY_FATAL,
+                            \TYPO3\CMS\Core\Log\LogLevel::ALERT,
                             'Template file ' . $file . ' contains an unparsable Form definition'
                         );
                         continue;
                     } elseif (false === $form->getEnabled()) {
                         $logger->log(
-                            GeneralUtility::SYSLOG_SEVERITY_NOTICE,
+                            \TYPO3\CMS\Core\Log\LogLevel::NOTICE,
                             'Template file ' . $file . ' is disabled by configuration'
                         );
                         continue;
@@ -242,7 +242,7 @@ class PageService implements SingletonInterface
                     $form->setExtensionName($extensionName);
                     $output[$extensionName][$filename] = $form;
                 } catch (InvalidSectionException $error) {
-                    $logger->log(GeneralUtility::SYSLOG_SEVERITY_ERROR, $error->getMessage());
+                    $logger->log(\TYPO3\CMS\Core\Log\LogLevel::ERROR, $error->getMessage());
                 }
             }
         }
-- 
2.25.1

