diff --git a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php index 3a5a90e39e3dfc33fce07515626ff593248344fa..ba3b5a0c91a639cfa8a381a39f1fcc70c26aff41 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -5265,7 +5265,7 @@ class ContentObjectRenderer { } } catch(\TYPO3\CMS\Core\Resource\Exception $exception) { /** @var \TYPO3\CMS\Core\Log\Logger $logger */ - $logger = GeneralUtility::makeInstance('TYPO3\CMS\Core\Log\LogManager')->getLogger(); + $logger = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Log\\LogManager')->getLogger(__CLASS__); $logger->warning('The image "' . $file . '" could not be found and won\'t be included in frontend output'); return NULL; } @@ -5543,7 +5543,7 @@ class ContentObjectRenderer { } } catch (\TYPO3\CMS\Core\Resource\Exception $exception) { /** @var \TYPO3\CMS\Core\Log\Logger $logger */ - $logger = GeneralUtility::makeInstance('TYPO3\CMS\Core\Log\LogManager')->getLogger(); + $logger = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Log\\LogManager')->getLogger(__CLASS__); $logger->warning('The file "' . $fileUidOrCurrentKeyword . '" could not be found and won\'t be included in frontend output'); $fileObject = NULL; } diff --git a/typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php b/typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php index 5d0e4822e515701906f432476f6eecc8a146308d..6b740996b1a9a84e600d0ba9abbd9ac33c910afe 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php +++ b/typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php @@ -78,7 +78,7 @@ class FilesContentObject extends \TYPO3\CMS\Frontend\ContentObject\AbstractConte $this->addToArray($this->getFileRepository()->findFileReferenceByUid($referenceUid), $fileObjects); } catch (\TYPO3\CMS\Core\Resource\Exception $e) { /** @var \TYPO3\CMS\Core\Log\Logger $logger */ - $logger = GeneralUtility::makeInstance('TYPO3\CMS\Core\Log\LogManager')->getLogger(); + $logger = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Log\\LogManager')->getLogger(__CLASS__); $logger->warning('The file-reference with uid "' . $referenceUid . '" could not be found and won\'t be included in frontend output'); } } @@ -110,7 +110,7 @@ class FilesContentObject extends \TYPO3\CMS\Frontend\ContentObject\AbstractConte $this->addToArray($this->getFileRepository()->findByUid($fileUid), $fileObjects); } catch (\TYPO3\CMS\Core\Resource\Exception $e) { /** @var \TYPO3\CMS\Core\Log\Logger $logger */ - $logger = GeneralUtility::makeInstance('TYPO3\CMS\Core\Log\LogManager')->getLogger(); + $logger = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Log\\LogManager')->getLogger(__CLASS__); $logger->warning('The file with uid "' . $fileUid . '" could not be found and won\'t be included in frontend output'); } } @@ -126,7 +126,7 @@ class FilesContentObject extends \TYPO3\CMS\Frontend\ContentObject\AbstractConte } } catch (\TYPO3\CMS\Core\Resource\Exception $e) { /** @var \TYPO3\CMS\Core\Log\Logger $logger */ - $logger = GeneralUtility::makeInstance('TYPO3\CMS\Core\Log\LogManager')->getLogger(); + $logger = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Log\\LogManager')->getLogger(__CLASS__); $logger->warning('The file-collection with uid "' . $collectionUid . '" could not be found or contents could not be loaded and won\'t be included in frontend output'); } } @@ -142,7 +142,7 @@ class FilesContentObject extends \TYPO3\CMS\Frontend\ContentObject\AbstractConte } } catch (\TYPO3\CMS\Core\Resource\Exception $e) { /** @var \TYPO3\CMS\Core\Log\Logger $logger */ - $logger = GeneralUtility::makeInstance('TYPO3\CMS\Core\Log\LogManager')->getLogger(); + $logger = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Log\\LogManager')->getLogger(__CLASS__); $logger->warning('The folder with identifier "' . $folderIdentifier . '" could not be found and won\'t be included in frontend output'); } }