Skip to content

Commit 4f946ad

Browse files
committed
chore: dont report NotFoundHttpException
Signed-off-by: smarcet@gmail.com <smarcet@gmail.com> Change-Id: Icc6cfc7c507cc6c4a07ad310d36052cb9ff39e8a
1 parent cd1a6ad commit 4f946ad

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/Exceptions/Handler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
* limitations under the License.
1313
**/
1414

15-
use Illuminate\Support\Facades\Log;
15+
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
16+
use Symfony\Component\HttpKernel\Exception\HttpException;
1617
use Throwable;
1718
use Illuminate\Validation\ValidationException;
1819
use Illuminate\Auth\Access\AuthorizationException;
1920
use Illuminate\Database\Eloquent\ModelNotFoundException;
2021
use Predis\Connection\ConnectionException as RedisConnectionException;
21-
use Symfony\Component\HttpKernel\Exception\HttpException;
2222
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
2323

2424
/**
@@ -38,6 +38,7 @@ class Handler extends ExceptionHandler
3838
ModelNotFoundException::class,
3939
ValidationException::class,
4040
RedisConnectionException::class,
41+
NotFoundHttpException::class
4142
];
4243

4344
/**
@@ -65,7 +66,6 @@ public function render($request, Throwable $e)
6566
if (config('app.debug')) {
6667
return parent::render($request, $e);
6768
}
68-
Log::error($e);
6969
return response()->view('errors.404', [], 200);
7070
}
7171
}

0 commit comments

Comments
 (0)