-
Notifications
You must be signed in to change notification settings - Fork 949
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
refactor: refact daemon log #2324
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2324 +/- ##
==========================================
- Coverage 67.34% 67.33% -0.01%
==========================================
Files 218 218
Lines 17674 17675 +1
==========================================
- Hits 11902 11901 -1
- Misses 4365 4366 +1
- Partials 1407 1408 +1
|
@@ -855,7 +855,7 @@ func (c *CriManager) ListContainerStats(ctx context.Context, r *runtime.ListCont | |||
for _, container := range containers { | |||
cs, err := c.getContainerMetrics(ctx, container) | |||
if err != nil { | |||
logrus.Errorf("failed to decode metrics of container %q: %v", container.ID, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
decode metrics log level keep as Error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Change the log level of all the "Get" method from "Info" to "Debug". Add the log to show set the disk quota information. Signed-off-by: Rudy Zhang <[email protected]>
LGTM. expect the comments above. Just a little tip: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -94,12 +94,12 @@ func (c *CriWrapper) RemovePodSandbox(ctx context.Context, r *runtime.RemovePodS | |||
|
|||
// PodSandboxStatus returns the status of the PodSandbox. | |||
func (c *CriWrapper) PodSandboxStatus(ctx context.Context, r *runtime.PodSandboxStatusRequest) (res *runtime.PodSandboxStatusResponse, err error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So strange to see using a defer to cover a simple error asserting. 😆
Ⅰ. Describe what this PR did
Change the log level of all the "Get" method from "Info" to "Debug".
Add the log to show set the disk quota information.
Ⅱ. Does this pull request fix one issue?
NONE
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
NONE
Ⅳ. Describe how to verify it
NONE
Ⅴ. Special notes for reviews
Signed-off-by: Rudy Zhang [email protected]