Skip to content

[6.x] Stop (excessive) logging of ElevatedSessionAuthorizationException#14725

Open
joshuablum wants to merge 1 commit into
6.xfrom
fix-excessive-elevated-session-logging
Open

[6.x] Stop (excessive) logging of ElevatedSessionAuthorizationException#14725
joshuablum wants to merge 1 commit into
6.xfrom
fix-excessive-elevated-session-logging

Conversation

@joshuablum
Copy link
Copy Markdown
Member

The ElevatedSessionAuthorizationException is a flow control exception and thrown by the RequireElevatedSession middleware purely so it can redirect the user to the confirm-password page. It's not an actual error. Laravel does the same for AuthorizationException and AuthenticationException.

Alternatively, the exception could be added to the dontReport array in the app, see Laravel's docs: https://laravel.com/docs/13.x/errors#ignoring-exceptions-by-type

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.

1 participant