This repository has been archived by the owner on Jan 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TASK: set request id from env if set in env, get rid of functions cal…
…ling TYPO3 Bootstrap to get the request id because the request id is not gettable anymore
- Loading branch information
Christian Keuerleber
committed
Oct 22, 2020
1 parent
b272e49
commit 0faee7d
Showing
4 changed files
with
32 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace PunktDe\PtExtbase\Logger\Processor; | ||
|
||
/* | ||
* (c) 2020 punkt.de GmbH - Karlsruhe, Germany - https://punkt.de | ||
* All rights reserved. | ||
*/ | ||
|
||
use \TYPO3\CMS\Core\Log\LogRecord; | ||
use \TYPO3\CMS\Core\Log\Processor\AbstractProcessor; | ||
|
||
class SwitchRequestIdProcessor extends AbstractProcessor | ||
{ | ||
/** | ||
* @param LogRecord $logRecord | ||
* @return LogRecord | ||
*/ | ||
public function processLogRecord(LogRecord $logRecord) | ||
{ | ||
$requestId = getenv('REQUEST_ID'); | ||
|
||
if ($requestId !== false) { | ||
$logRecord->setRequestId($requestId); | ||
} | ||
|
||
return $logRecord; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.