Skip to content

Commit a322d8f

Browse files
committed
remove request/response value objects from log context
1 parent 27430f5 commit a322d8f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/LoggerPlugin.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ protected function doHandleRequest(RequestInterface $request, callable $next, ca
4040
$this->logger->info(
4141
sprintf("Received response:\n%s", $this->formatter->formatResponse($response)),
4242
[
43-
'request' => $request,
44-
'response' => $response,
4543
'milliseconds' => $milliseconds,
4644
'uid' => $uid,
4745
]
@@ -54,8 +52,6 @@ protected function doHandleRequest(RequestInterface $request, callable $next, ca
5452
$this->logger->error(
5553
sprintf("Error:\n%s\nwith response:\n%s", $exception->getMessage(), $this->formatter->formatResponse($exception->getResponse())),
5654
[
57-
'request' => $request,
58-
'response' => $exception->getResponse(),
5955
'exception' => $exception,
6056
'milliseconds' => $milliseconds,
6157
'uid' => $uid,
@@ -65,7 +61,6 @@ protected function doHandleRequest(RequestInterface $request, callable $next, ca
6561
$this->logger->error(
6662
sprintf("Error:\n%s\nwhen sending request:\n%s", $exception->getMessage(), $this->formatter->formatRequest($request)),
6763
[
68-
'request' => $request,
6964
'exception' => $exception,
7065
'milliseconds' => $milliseconds,
7166
'uid' => $uid,

0 commit comments

Comments
 (0)