Skip to content

[9.x] Improved error logging for unmatched routes and route not found - #45206

Merged
taylorotwell merged 4 commits into
laravel:9.xfrom
i386:not-found-and-incorrect-method-error-messages
Dec 7, 2022
Merged

[9.x] Improved error logging for unmatched routes and route not found#45206
taylorotwell merged 4 commits into
laravel:9.xfrom
i386:not-found-and-incorrect-method-error-messages

Conversation

@i386

@i386 i386 commented Dec 6, 2022

Copy link
Copy Markdown

Recreating #45191 as it was closed a little too early for me to provide an update based on feedback.

This change adds some improved error messages so that poor client usages (for example, older versions of mobile clients) can be identified via sentry logging etc. At the moment this is impossible to do without logging every request.

The change targets the following:

  • handleMatchedRoute's NotFoundHttpException
  • methodNotAllowed's MethodNotAllowedHttpException

@i386

i386 commented Dec 6, 2022

Copy link
Copy Markdown
Author

updated the change to fix the style issue but not sure why its not running again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants