diff --git a/src/MonologMiddleware/MonologMiddleware.php b/src/MonologMiddleware/MonologMiddleware.php index 0d80d5b..2529d65 100644 --- a/src/MonologMiddleware/MonologMiddleware.php +++ b/src/MonologMiddleware/MonologMiddleware.php @@ -45,7 +45,7 @@ public function __construct(Logger $logger, loggableProvider $loggableProvider) */ public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next = null) { - $nextResponse = $next($request, $response) + $nextResponse = $next($request, $response); $level = $this->getLogLevel($response->getStatusCode()); $this->log($level, $request, $nextResponse);