Skip to content

Commit 63a87cb

Browse files
committed
Don't expand objects, when logging to ecs
1 parent c10a960 commit 63a87cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/RequestLog/Data/RequestLog.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ public function log(LoggerInterface $logger)
3737
'body' => [
3838
'content' => $this->requestBody
3939
],
40-
'cookies' => $this->requestCookies,
41-
'headers' => $this->requestHeaders,
40+
'cookies.raw' => json_encode($this->requestCookies, JSON_PRETTY_PRINT),
41+
'headers.raw' => json_encode($this->requestHeaders, JSON_PRETTY_PRINT),
4242
'method' => $this->method
4343
],
4444
'response' => [
4545
'body' => [
4646
'content' => $this->responseBody
4747
],
48-
'cookies' => $this->responseCookies,
49-
'headers' => $this->responseHeaders,
48+
'cookies.raw' => json_encode($this->responseCookies, JSON_PRETTY_PRINT),
49+
'headers.raw' => json_encode($this->responseHeaders, JSON_PRETTY_PRINT),
5050
'status_code' => $this->status
5151
]
5252
],

0 commit comments

Comments
 (0)