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

Fix invalid json in log #2139

Closed
wants to merge 1 commit into from
Closed

Conversation

chulkilee
Copy link

@chulkilee chulkilee commented Aug 8, 2018

What does this PR do?

Fix invalid json in log.

https://github.com/DataDog/datadog-agent/blob/6.4.1/pkg/forwarder/transaction.go#L140 uses %q for log URL, which uses " in the log message. However, the message is just passed to seelog without escape.

See cihub/seelog#161 - all changes are from it.

Motivation

It breaks JSON parsing in Logstash :(

@chulkilee chulkilee requested a review from a team as a code owner August 8, 2018 19:57
@chulkilee
Copy link
Author

BTW I couldn't set up local dev environment, and had no time to figure out how to add tests for this. So... any help on this would be appreciated.

@hush-hush
Copy link
Member

Hi @chulkilee,

Thanks a lot for this PR and sorry for the very long response time. The issue was fixed in #4004 (which was included in 6.14.0).

@hush-hush hush-hush closed this Oct 11, 2019
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