Skip to content

Commit 51deefa

Browse files
committed
Fixed cs and changelog
1 parent 49ebd8c commit 51deefa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22

33

4+
## 1.1.0 - 2018-03-29
5+
6+
- Start measuring the time it took to do the request.
7+
48
## 1.0.0 - 2016-05-05
59

610
- Initial release

src/LoggerPlugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function handleRequest(RequestInterface $request, callable $next, callabl
3535
$this->logger->info(sprintf("Sending request:\n%s", $this->formatter->formatRequest($request)), ['request' => $request]);
3636

3737
return $next($request)->then(function (ResponseInterface $response) use ($request, $start) {
38-
$milliseconds = round(microtime() - $start/1000);
38+
$milliseconds = round(microtime() - $start / 1000);
3939
$this->logger->info(
4040
sprintf("Received response:\n%s\n\nfor request:\n%s", $this->formatter->formatResponse($response), $this->formatter->formatRequest($request)),
4141
[
@@ -47,7 +47,7 @@ public function handleRequest(RequestInterface $request, callable $next, callabl
4747

4848
return $response;
4949
}, function (Exception $exception) use ($request, $start) {
50-
$milliseconds = round(microtime() - $start/1000);
50+
$milliseconds = round(microtime() - $start / 1000);
5151
if ($exception instanceof Exception\HttpException) {
5252
$this->logger->error(
5353
sprintf("Error:\n%s\nwith response:\n%s\n\nwhen sending request:\n%s", $exception->getMessage(), $this->formatter->formatResponse($exception->getResponse()), $this->formatter->formatRequest($request)),

0 commit comments

Comments
 (0)