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

1. Log helpful error message on JSON parse failure, 2. Object value instead of String #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

the-james-burton
Copy link
Contributor

Hi Anton,

Here is the PR as promised. It is only a small change. It helps when developing clients as you can see more easily when you are going wrong.

This change also has a Map<String, Object> to hold the key value pairs instead of Map<String, String>. That lets me send a numeric type to Graylog and have it end up in Elasticsearch as as numeric type.

I saw that you already had a test for bad JSON, so I left that as it was. I'm actually not sure how to validate the presence of the new error message in the logs, but you can see it does get printed to the console when building.

Regards,
James

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.

1 participant