8000 bug #52994 [MonologBridge] Fix context data and display extra data (l… · symfony/symfony@2fae7d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2fae7d5

Browse files
bug #52994 [MonologBridge] Fix context data and display extra data (louismariegaborit)
This PR was merged into the 6.3 branch. Discussion ---------- [MonologBridge] Fix context data and display extra data | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | -> | License | MIT Fix the compatibility with Monolog 3. In the PR #52222 we had the compatibility with Monolog 3 but context parameter is incorrect and extra parameter is missing. No test can be added because testing this command is not possible at this time. Another PR (#53518) was opened to add test on this command. Commits ------- 8687ae0 Fix context data and display extra data
2 parents 9e92ab3 + 8687ae0 commit 2fae7d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bridge/Monolog/Command/ServerLogCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ private function displayLog(OutputInterface $output, int $clientId, array $recor
164164
$record['channel'],
165165
Level::fromValue($record['level']),
166166
$record['message'],
167-
$record['context']->getContext(),
167+
$record['context']->getValue(true),
168+
$record['extra']->getValue(true),
168169
);
169170
}
170171

0 commit comments

Comments
 (0)
0