You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an issue where something was logging to laravel.log but it couldn't write to it, so when the exception handler caught it and attempted to log the exception, by also writing to laravel.log, it errored out without logging anything or showing on screen.
So, if the exception handler report throws an exception, there is no way of reporting the exception
Steps To Reproduce:
Make your log file unwritable: (ug+r, User/Group Add Read permission, ug-w, User/Group Revoke Write permission
// Global catch all so we can still render errors if we're unable to report them.
try {
$this->getExceptionHandler()->report($e);
} catch (\Exception $e) {}
I can submit this as a PR, or you could make the change yourself. I just want to ensure that this is something you want to pursue first.
The text was updated successfully, but these errors were encountered:
Description:
I had an issue where something was logging to
laravel.log
but it couldn't write to it, so when the exception handler caught it and attempted to log the exception, by also writing to laravel.log, it errored out without logging anything or showing on screen.So, if the exception handler report throws an exception, there is no way of reporting the exception
Steps To Reproduce:
Make your log file unwritable: (ug+r, User/Group Add Read permission, ug-w, User/Group Revoke Write permission
Throw an exception anywhere in the application.
Possible Fix:
In here at line 80.
I can submit this as a PR, or you could make the change yourself. I just want to ensure that this is something you want to pursue first.
The text was updated successfully, but these errors were encountered: