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

DOC Update error handling and logging docs #660

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

GuySartorelli
Copy link
Member

Clarifies between the error handler and the logger a little, and adds a note to the changelog about the changes in the related PRs

Issue


Some errors were incorrectly being logged using the error handler service, which resulted in displaying the error in the browser and CLI and, in live mode, not displaying the rest of the response to users.

This was the result of a misunderstanding about the difference between the `Psr\Log\LoggerInterface.errorhandler` error handler service and the `Psr\Log\LoggerInterface.errorhandler` logging service.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
This was the result of a misunderstanding about the difference between the `Psr\Log\LoggerInterface.errorhandler` error handler service and the `Psr\Log\LoggerInterface.errorhandler` logging service.
This was the result of a misunderstanding about the difference between the `Psr\Log\LoggerInterface` error handler service and the `Psr\Log\LoggerInterface.errorhandler` logging service.

Or the other way around

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops yup. Other way around but good catch.

@emteknetnz emteknetnz merged commit 8a45740 into silverstripe:5 Jan 6, 2025
3 checks passed
@emteknetnz emteknetnz deleted the pulls/5/bad-logging branch January 6, 2025 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants