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

cardano-tracer-3637: correct JSON logs. #3640

Merged
merged 1 commit into from
Feb 23, 2022
Merged

Conversation

denisshevchenko
Copy link
Contributor

@jutaro reported:

Currently the data field in JSON formats are strings, which are escaped:

{"host":"deusXmachina", "data":"{\"kind\":\"OpenEvent.OpenedImmutableDB\"}","thread":"5"}

But data should not be a string, but a JSON object:

{"host":"deusXmachina", "data":{"kind":"OpenEvent.OpenedImmutableDB"}, "thread":"5"}

Additionally, now the order of JSON-pairs is the same as in trace-dispatcher.

@denisshevchenko denisshevchenko self-assigned this Feb 23, 2022
@denisshevchenko denisshevchenko linked an issue Feb 23, 2022 that may be closed by this pull request
Copy link
Contributor

@jutaro jutaro left a comment

Choose a reason for hiding this comment

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

The code looks good for me.

@denisshevchenko
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Feb 23, 2022
3640: cardano-tracer-3637: correct JSON logs. r=denisshevchenko a=denisshevchenko

`@jutaro` reported:

Currently the data field in JSON formats are strings, which are escaped:

```
{"host":"deusXmachina", "data":"{\"kind\":\"OpenEvent.OpenedImmutableDB\"}","thread":"5"}
```

But data should not be a string, but a JSON object:

```
{"host":"deusXmachina", "data":{"kind":"OpenEvent.OpenedImmutableDB"}, "thread":"5"}
```

Additionally, now the order of JSON-pairs is the same as in `trace-dispatcher`.

Co-authored-by: Denis Shevchenko <denis.shevchenko@iohk.io>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Feb 23, 2022

This PR was included in a batch that successfully built, but then failed to merge into master. It will not be retried.

Additional information:

{"message":"Waiting on code owner review from deepfire.","documentation_url":"https://docs.github.com/articles/about-protected-branches"}

@denisshevchenko
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Feb 23, 2022

Build succeeded:

@iohk-bors iohk-bors bot merged commit d7427a8 into master Feb 23, 2022
@iohk-bors iohk-bors bot deleted the cardano-tracer-3637 branch February 23, 2022 17:55
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.

cardano-tracer: fix JSON logs
3 participants