-
Notifications
You must be signed in to change notification settings - Fork 697
plugins/ocp: fix telemetry string log output format #2586
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
plugins/ocp: fix telemetry string log output format #2586
Conversation
9e43e6a to
4f4df42
Compare
|
Generally, if you commit message already contains bullet points which this change does, these bullet point changes should usually be separate patches. As far I read the ascii output change, it's a output format change, right? Not sure how you want to handle this. @arthurshau what are you thoughts on this? |
Thanks. |
|
First point, okay. Didn't look too closely. Just thought, it's unrelated. Second point. If your change doesn't change the field names, then all is good. My argument is that changing the json field names (e.g. renaming) is a regression. The json output should be stable, so that any parser doesn't have to be touched just because we rename something. |
Got it. No changes are there for the field names. Its still noted 'ASCII Table'. The change is instead of printing the complete ascii data as a single dump, organized it in Byte wise ASCII data (as expected by specification) |
4f4df42 to
422412c
Compare
|
@igaw , To ease the review and merge. I modified this pull request into 2 part. This part is to fix the json output format crash and disabling the debug prints only. Will take up the ASCII Table alignment in a separate pull request. please check further :) |
|
Looks good, just the reserved field renaming thing |
5030aa3 to
db99855
Compare
Fixed the code to handle the json output crash Disabled debug logs output when parsing telemetry-string-log data Signed-off-by: Karthik Balan [email protected] <[email protected]> Reviewed-by: Arunpandian J <[email protected]>
|
@igaw , Could you please update further on the patch upstream? |
|
Looks good to me. Thanks! |
This PR will take care of fixing the output format for "telemetry-string-log" command in ocp plug in
Fixed the code to handle json output crash and proper display of ASCII Table content
Disabling debug logs output while parsing telemetry-string-log data
Signed-off-by: Karthik Balan [email protected],
Reviewed-by: Arunpandian J [email protected],