Skip to content

Commit

Permalink
Update LogRequest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
firecow authored Jul 3, 2024
1 parent 2331a90 commit e717a17
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/RequestLog/Middleware/LogRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e717a17

Please sign in to comment.