Skip to content

Conversation

@bitoku
Copy link
Contributor

@bitoku bitoku commented Jan 17, 2025

What type of PR is this?

/kind bug

What this PR does / why we need it:

This fixes the parenthesis of logs from klog.

Tested with this code.

klog.InfoS("test message", "version", "test", "err", nil)
klog.InfoS("test message", "version", "test", "missing")

Before

time="2025-01-17T14:48:43Z" level=debug msg="test message (version=\"test\" err=<nil>"
time="2025-01-17T14:48:43Z" level=debug msg="test message (version=\"test\" missing=\"[MISSING]\""

After

time="2025-01-17T14:52:25Z" level=debug msg="test message (version=\"test\" err=<nil>)"
time="2025-01-17T14:52:25Z" level=debug msg="test message (version=\"test\" missing=\"[MISSING]\")"

Which issue(s) this PR fixes:

None

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Fixed log format from klog.

@bitoku bitoku requested a review from mrunalp as a code owner January 17, 2025 15:15
@openshift-ci openshift-ci bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/bug Categorizes issue or PR as related to a bug. labels Jan 17, 2025
@openshift-ci openshift-ci bot requested review from hasan4791 and klihub January 17, 2025 15:16
@codecov
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.23%. Comparing base (7e25c81) to head (2711469).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8918      +/-   ##
==========================================
+ Coverage   47.09%   47.23%   +0.14%     
==========================================
  Files         154      154              
  Lines       22138    22138              
==========================================
+ Hits        10425    10456      +31     
+ Misses      10644    10613      -31     
  Partials     1069     1069              

@bitoku
Copy link
Contributor Author

bitoku commented Jan 17, 2025

/retest

Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

Code LGTM, thank you for the fix!

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 20, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 20, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bitoku, saschagrunert

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 20, 2025
@saschagrunert
Copy link
Member

/retest

@openshift-merge-bot openshift-merge-bot bot merged commit 2be64b4 into cri-o:main Jan 20, 2025
68 of 70 checks passed
@bitoku bitoku deleted the fix-klog-shim branch May 21, 2025 10:24
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. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants