diff --git a/src/RequestLog/Middleware/LogRequest.php b/src/RequestLog/Middleware/LogRequest.php index de6db0c..579f9b5 100644 --- a/src/RequestLog/Middleware/LogRequest.php +++ b/src/RequestLog/Middleware/LogRequest.php @@ -99,13 +99,11 @@ protected function truncate(string $string, int $length): string private function logRequest(Request $request, Response $response): void { try { - if ( ! config('request-log.enabled') || $this->routeIsBlacklisted($request)) { + if (!config('request-log.enabled') || $this->routeIsBlacklisted($request)) { return; } - Log::debug($request); - - $executionTimeNs = null; + $executionTimeNs = null if (!is_null($this->startTime)) { $executionTimeNs = hrtime(true) - $this->startTime; }