8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5bdc4b4 + 3a76000 commit af67543Copy full SHA for af67543
logging/processors.rst
@@ -32,7 +32,7 @@ using a processor::
32
}
33
34
// this method is called for each log record; optimize it to not hurt performance
35
- public function __invoke(array $record)
+ public function __invoke(LogRecord $record): LogRecord
36
{
37
try {
38
$session = $this->requestStack->getSession();
@@ -45,7 +45,7 @@ using a processor::
45
46
$sessionId = substr($session->getId(), 0, 8) ?: '????????';
47
48
- $record['extra']['token'] = $sessionId.'-'.substr(uniqid('', true), -8);
+ $record->extra['token'] = $sessionId.'-'.substr(uniqid('', true), -8);
49
50
return $record;
51
0 commit comments