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

Commit

Permalink
- Put Illuminate\Encryption\MissingAppKeyException: No application en…
Browse files Browse the repository at this point in the history
…cryption key has been specified on the error ignore list
  • Loading branch information
coalaura committed Aug 4, 2021
1 parent d79e5c8 commit 12b5245
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ class Handler extends ExceptionHandler
*/
public function report(Throwable $exception)
{
if ($exception instanceof \Symfony\Component\HttpKernel\Exception\NotFoundHttpException) {
if (
$exception instanceof \Symfony\Component\HttpKernel\Exception\NotFoundHttpException || // 404 doesn't need to be logged to avoid filling the log file
$exception instanceof \Illuminate\Encryption\MissingAppKeyException // /api/players Illuminate\Encryption\MissingAppKeyException: No application encryption key has been specified.
) {
parent::report($exception);
return;
}
Expand Down

0 comments on commit 12b5245

Please sign in to comment.