Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 12b5245

Browse files
committed
- Put Illuminate\Encryption\MissingAppKeyException: No application encryption key has been specified on the error ignore list
1 parent d79e5c8 commit 12b5245

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/Exceptions/Handler.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ class Handler extends ExceptionHandler
4040
*/
4141
public function report(Throwable $exception)
4242
{
43-
if ($exception instanceof \Symfony\Component\HttpKernel\Exception\NotFoundHttpException) {
43+
if (
44+
$exception instanceof \Symfony\Component\HttpKernel\Exception\NotFoundHttpException || // 404 doesn't need to be logged to avoid filling the log file
45+
$exception instanceof \Illuminate\Encryption\MissingAppKeyException // /api/players Illuminate\Encryption\MissingAppKeyException: No application encryption key has been specified.
46+
) {
4447
parent::report($exception);
4548
return;
4649
}

0 commit comments

Comments
 (0)