Why Laravel still logging a NotFoundHttpException while all routes works? Why Laravel still logging a NotFoundHttpException while all routes works? nginx nginx

Why Laravel still logging a NotFoundHttpException while all routes works?


This had nothing to with NGINX config.

The path to the favicon was incorrect. I assumed all resources were found because in the web inspector everything was status OK or 304. I guess the inspector doesn't show the favicon in the network tab.

As Rubens Mariuzzo mentioned, the access.log revealed that the favicon was status 500.

As a side note, if you would like Laravel to stop logging 404s/Resource Not Found as errors in log files, you can edit your global.php file like the following.

App::error(function(Exception $exception, $code){    // Don't log 404s    if ($exception instanceof Symfony\Component\HttpKernel\Exception\NotFoundHttpException) {        return;    }    Log::error($exception);});