-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
ViewExceptions will never be logged #36109
Comments
The return value of the |
The return value can be
The handler explicitly checks for false before aborting here: https://github.com/laravel/framework/blob/8.x/src/Illuminate/Foundation/Exceptions/Handler.php#L216-L220 |
Ah it seems that our docblocks are incorrect then. Thanks for letting us know. I'll get that also fixed. |
ViewExceptions will still never be logged in Laravel 6 because the default Exception/Handler does not check nor react to return values of exception
Is nowhere to be found in
|
Description:
The
ViewException
class introduced in #36032 will never be logged because itsreport
method always returnsnull
. Any return value other thanfalse
will suppress logging, so no exceptions thrown in views will be loggedViewException
also doesn't return the wrapped exception'sreport
value, so wrapped exceptions cannot change the return valueSteps To Reproduce:
composer remove facade/ignition nunomaduro/collision
) [6.x & 8.x only]The text was updated successfully, but these errors were encountered: