-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update max lenght to be in a variable
- Loading branch information
1 parent
6aaf4de
commit d611f8e
Showing
5 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,7 @@ public function __invoke(RequestInterface $request, array $options = []) | |
$response = $this->client->send($request, $options); | ||
|
||
if ($this->logger) { | ||
$this->responseLog($response, $requestEvent); | ||
$this->responseLog($response, $requestEvent); | ||
} | ||
|
||
return $response; | ||
|
@@ -120,6 +120,11 @@ public function requestLog(RequestInterface $request, array $options): RpcLogEve | |
return $requestEvent; | ||
} | ||
|
||
/** | ||
* @internal | ||
* @param RequestInterface $request | ||
* @param array<mixed> $options | ||
*/ | ||
public function responseLog(ResponseInterface $response, RpcLogEvent $requestEvent): void | ||
Check failure on line 128 in src/HttpHandler/Guzzle6HttpHandler.php GitHub Actions / PHPStan Static Analysis / PHPStan Static Analysis
Check failure on line 128 in src/HttpHandler/Guzzle6HttpHandler.php GitHub Actions / PHPStan Static Analysis / PHPStan Static Analysis
|
||
{ | ||
$responseEvent = new RpcLogEvent($requestEvent->milliseconds); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters