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

(PE-37145) ensure schema failures are verbosely logged #2824

Merged

Conversation

jonathannewman
Copy link
Contributor

Prior to this change, a failure in schema checks would provide minimal useful context in the logs around what the schema error was. This adds specific handling for schema failures to log them more verbosely as well as forming a json error payload that contains the schema failures.

Prior to this change, the default handler for jetty was generating a generic error page with the schema failure. Given that the consumers of this endpoint are not often webbrowsers, this form of content was deemed less useful than a json response with the details.

Prior to this change, a failure in schema checks would provide minimal
useful context in the logs around what the schema error was. This adds
specific handling for schema failures to log them more verbosely as well
as forming a json error payload that contains the schema failures.

Prior to this change, the default handler for jetty was generating a
generic error page with the schema failure.  Given that the consumers
of this endpoint are not often webbrowsers, this form of content
was deemed less useful than a json response with the details.
@jonathannewman jonathannewman requested a review from a team as a code owner February 16, 2024 20:18
Copy link
Contributor

@steveax steveax left a comment

Choose a reason for hiding this comment

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

👍

@steveax steveax merged commit 158d7d6 into puppetlabs:7.x Feb 16, 2024
11 of 12 checks passed
@jonathannewman jonathannewman deleted the PE-37145/7.x/better-exception-messaging branch February 17, 2024 00:05
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