diff --git a/Classes/Div.php b/Classes/Div.php index e633540c..4974e3be 100755 --- a/Classes/Div.php +++ b/Classes/Div.php @@ -1614,15 +1614,4 @@ public static function isMinTypo3Version($minVersion) $minVersionAsInt = VersionNumberUtility::convertVersionNumberToInteger($minVersion); return $currentVersionAsInt >= $minVersionAsInt; } - - - /** - * @return string - */ - public static function getCurrentRequestId() - { - ###TODO - return ''; - //return \TYPO3\CMS\Core\Core\Bootstrap:: getInstance()->getRequestId(); - } } diff --git a/Classes/Logger/Logger.php b/Classes/Logger/Logger.php index 5a6adf58..6c7f2866 100644 --- a/Classes/Logger/Logger.php +++ b/Classes/Logger/Logger.php @@ -22,6 +22,7 @@ ***************************************************************/ use PunktDe\PtExtbase\Logger\Processor\ReplaceComponentProcessor; +use PunktDe\PtExtbase\Logger\Processor\SwitchRequestIdProcessor; use TYPO3\CMS\Core\Log\LogManager; use TYPO3\CMS\Core\SingletonInterface; use TYPO3\CMS\Core\Log\LogLevel; @@ -122,7 +123,8 @@ protected function configureLoggerProperties() ]; $GLOBALS['TYPO3_CONF_VARS']['LOG']['processorConfiguration'][LogLevel::DEBUG] = [ - ReplaceComponentProcessor::class => [] + ReplaceComponentProcessor::class => [], + SwitchRequestIdProcessor::class => [] ]; } diff --git a/Classes/Logger/Processor/SwitchRequestIdProcessor.php b/Classes/Logger/Processor/SwitchRequestIdProcessor.php new file mode 100644 index 00000000..76799c8f --- /dev/null +++ b/Classes/Logger/Processor/SwitchRequestIdProcessor.php @@ -0,0 +1,29 @@ +setRequestId($requestId); + } + + return $logRecord; + } +} diff --git a/Classes/Utility/RequestInformation.php b/Classes/Utility/RequestInformation.php deleted file mode 100755 index f9aeab9c..00000000 --- a/Classes/Utility/RequestInformation.php +++ /dev/null @@ -1,44 +0,0 @@ -getRequestId(); - } -}