diff --git a/src/Transport.php b/src/Transport.php index e64382f..0fcf0ac 100644 --- a/src/Transport.php +++ b/src/Transport.php @@ -244,7 +244,9 @@ private function logRequest(string $title, RequestInterface $request): void $title, $request->getMethod(), (string) $request->getUri() - )); + ), [ + 'request' => $request + ]); $this->logHeaders($request); } @@ -255,7 +257,10 @@ private function logResponse(string $title, ResponseInterface $response, int $re $title, $retry, $response->getStatusCode() - )); + ), [ + 'response' => $response, + 'retry' => $retry + ]); $this->logHeaders($response); }