Skip to content
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

Merged
merged 1 commit into from
Sep 14, 2016

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented Sep 9, 2016

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@DeepDiver1975 @VicDeo @butonic @guruz

@PVince81 PVince81 added this to the 9.2 milestone Sep 9, 2016
@mention-bot
Copy link

@PVince81, thanks for your PR! By analyzing the annotation information on this pull request, we identified @DeepDiver1975, @butonic and @LukasReschke to be potential reviewers

@PVince81
Copy link
Contributor Author

PVince81 commented Sep 9, 2016

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PVince81 A typo

@VicDeo
Copy link
Member

VicDeo commented Sep 14, 2016

@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.
@PVince81 PVince81 force-pushed the print-error-if-exception-failed branch from 5cafbf4 to cd1abb4 Compare September 14, 2016 13:17
@codecov-io
Copy link

Current coverage is 59.58%

No coverage report found for master at 4d3839c.

Powered by Codecov. Last update 4d3839c...0a6e09a

@PVince81
Copy link
Contributor Author

Fixed typo and merging as index.php isn't covered anyway

@lock
Copy link

lock bot commented Aug 4, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants