Skip to content

Commit

Permalink
fix: improve api client request logging row
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Martinkevich committed May 28, 2024
1 parent aa78efc commit f4c7b6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Gateway/Http/Client.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Copyright (c) 2023 Hawksearch (www.hawksearch.com) - All Rights Reserved
* Copyright (c) 2024 Hawksearch (www.hawksearch.com) - All Rights Reserved
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Expand Down Expand Up @@ -127,9 +127,9 @@ public function placeRequest(TransferInterface $transferObject)
$this->logger->info(
'Api Client Request:',
array(
'method' => $transferObject->getMethod(),
'uri' => $transferObject->getUri(),
'headers' => $transferObject->getHeaders(),
'method' => $client->getMethod(),
'uri' => $client->getUri()->toString(),
'headers' => $client->getRequest()->getHeaders()->toArray(),
)
);
$this->logger->debug('Request Body:', (array)$requestBody);
Expand Down

0 comments on commit f4c7b6d

Please sign in to comment.