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

log to_string_pretty error in debug instead of fail #271

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

robfitzgerald
Copy link
Collaborator

in the process of using routee incorrectly (sigh) i realized that the debug plugin could fail if the value passed to it was not JSON deserializable. instead of raising that serde_json::Error, i have the debug plugin write a pretty-printed error message in the debug log instead.

not tested, but, since debug is not in the critical path of Compass, we could probably accept this.

Copy link
Collaborator

@nreinicke nreinicke left a comment

Choose a reason for hiding this comment

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

This makes sense to me!

@robfitzgerald robfitzgerald merged commit c7b8dc3 into main Dec 19, 2024
5 checks passed
@robfitzgerald robfitzgerald deleted the rjf/debug-no-fail branch December 19, 2024 21:43
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