-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not log "invalid request token" exceptions #1139
Comments
|
You mean a hardcoded list? What if someone wants to add more entries? |
|
We could make it configurable in the bundle. But how would you prevent logging in a regular Symfony application? |
|
The more I think about it, I come to the conclusion that we should only log unknown exceptions. Do not log the known exceptions: private static $mapper = [
ForwardPageNotFoundException::class => 'forward_page_not_found',
IncompleteInstallationException::class => 'incomplete_installation',
InsecureInstallationException::class => 'insecure_installation',
InvalidRequestTokenException::class => 'invalid_request_token',
NoActivePageFoundException::class => 'no_active_page_found',
NoLayoutSpecifiedException::class => 'no_layout_specified',
NoRootPageFoundException::class => 'no_root_page_found',
];And do not log the back end exceptions, because both the known exceptions and the back end exceptions are primarily user error which provide little value when added in the log file, don't you think? |
|
Well, we should log the |
|
I agree, only |
|
Implemented in f72251f. |
@contao/developers How can we stop certain exceptions such as "invalid request token" from cluttering up the log files?
The text was updated successfully, but these errors were encountered: