-
Notifications
You must be signed in to change notification settings - Fork 2.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
Print error if logged couldn't log it in index.php #26075
Conversation
@PVince81, thanks for your PR! By analyzing the annotation information on this pull request, we identified @DeepDiver1975, @butonic and @LukasReschke to be potential reviewers |
Okay, to reproduce the issue just set open_basedir and make /dev/urandom not accessible: #26076 |
OC_Template::printExceptionErrorPage($ex); | ||
} catch (\Exception $ex2) { | ||
// with some env issues, it can happen that the logger couldn't log properly, | ||
// so print out the exception directlry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PVince81 A typo
@PVince81 ok, just fix a typo and here is my 👍 |
In some rare env problem cases, the exception cannot be logged because the logger couldn't be initialized properly. In such cases, we now print the stack trace directly on the output.
5cafbf4
to
cd1abb4
Compare
Current coverage is 59.58%
|
Fixed typo and merging as index.php isn't covered anyway |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Checklist:
@DeepDiver1975 @VicDeo @butonic @guruz