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.
1 parent abbc215 commit 3b4ebc0Copy full SHA for 3b4ebc0
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