Skip to content

Commit 170c10b

Browse files
committed
Remove JSON_PRETTY_PRINT from logger context output
- Keep context data on single line for more compact output - Maintain JSON_UNESCAPED_SLASHES for readable URLs/paths
1 parent 9caad61 commit 170c10b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function logger(): LoggerInterface
5757
public function log($level, $message, array $context = []): void
5858
{
5959
if (!empty($context)) {
60-
$contextString = json_encode($context, \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES);
60+
$contextString = json_encode($context, \JSON_UNESCAPED_SLASHES);
6161
$message .= ': '.$contextString;
6262
}
6363

0 commit comments

Comments
 (0)