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 byte array display in InfoS and ErrorS #237

Merged
merged 1 commit into from May 11, 2021

Conversation

yuzhiquan
Copy link
Member

What this PR does / why we need it:
Fix byte array display in InfoS and ErrorS
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #236

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:


@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 10, 2021
@yuzhiquan
Copy link
Member Author

/assign @dims

@yuzhiquan
Copy link
Member Author

refs kubernetes/kubernetes#101714

@yuzhiquan
Copy link
Member Author

/cc @serathius

klog_test.go Outdated Show resolved Hide resolved
@serathius
Copy link

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 10, 2021
@dims
Copy link
Member

dims commented May 10, 2021

@yuzhiquan what if the byte array has non-printable characters?

@yuzhiquan
Copy link
Member Author

yuzhiquan commented May 11, 2021

non-printable characters

@dims As showed here https://blog.golang.org/strings#TOC_3. may be plus %+q is ok for non-printable characters

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 11, 2021
@dims
Copy link
Member

dims commented May 11, 2021

that sounds better @yuzhiquan

/approve
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 11, 2021
@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dims, serathius, yuzhiquan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 11, 2021
@k8s-ci-robot k8s-ci-robot merged commit 4c0ac5a into kubernetes:master May 11, 2021
@yuzhiquan yuzhiquan deleted the fix-byte-array-display branch May 11, 2021 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[]byte will use +%v through InfoS.
4 participants