Skip to content

Commit

Permalink
Merge pull request #22 from ro0NL/patch-1
Browse files Browse the repository at this point in the history
Update LoggerPlugin.php
  • Loading branch information
dbu authored Feb 21, 2022
2 parents 9aeb868 + 7748f47 commit 54e01da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LoggerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function doHandleRequest(RequestInterface $request, callable $next, ca
{
$start = hrtime(true) / 1E6;
$uid = uniqid('', true);
$this->logger->info(sprintf("Sending request:\n%s", $this->formatter->formatRequest($request)), ['request' => $request, 'uid' => $uid]);
$this->logger->info(sprintf("Sending request:\n%s", $this->formatter->formatRequest($request)), ['uid' => $uid]);

return $next($request)->then(function (ResponseInterface $response) use ($start, $uid, $request) {
$milliseconds = (int) round(hrtime(true) / 1E6 - $start);
Expand Down

0 comments on commit 54e01da

Please sign in to comment.