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

Write to the error log if displayErrorDetails is false #1764

Merged
merged 2 commits into from Feb 13, 2016
Merged

Write to the error log if displayErrorDetails is false #1764

merged 2 commits into from Feb 13, 2016

Conversation

akrabat
Copy link
Member

@akrabat akrabat commented Feb 11, 2016

When displayErrorDetails is false, then the developer doesn't get any information on the exception. Add this information to the error log so that they can find it.

Closes #1761

When displayErrorDetails is false, then the developer doesn't get any
information on the exception. Add this information to the error log so
that they can find it.
@akrabat akrabat added this to the 3.2.0 milestone Feb 11, 2016
@akrabat
Copy link
Member Author

akrabat commented Feb 11, 2016

ping @silentworks, @codeguy

*/
protected function renderTextException(Exception $exception)
{
$html = sprintf('Type: %s' . PHP_EOL, get_class($exception));
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Why is this variable named $html instead of $text? The docblock saysRender exception as Text.

@akrabat
Copy link
Member Author

akrabat commented Feb 11, 2016

@campersau Updated. Thank you!

@geggleto
Copy link
Member

@akrabat thoughts on just including monolog?

@akrabat
Copy link
Member Author

akrabat commented Feb 11, 2016

Don't want to. It's not the only PSR-3 logging library

@silentworks
Copy link
Member

Looks good to me.

@akrabat
Copy link
Member Author

akrabat commented Feb 11, 2016

/me waits for @silentworks to merge it…

silentworks added a commit that referenced this pull request Feb 13, 2016
Write to the error log if displayErrorDetails is false
@silentworks silentworks merged commit 678b7f1 into slimphp:3.x Feb 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants