-
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
style: format cri logs #2147
style: format cri logs #2147
Conversation
@@ -33,7 +33,7 @@ func RunCriService(daemonconfig *config.Config, containerMgr mgr.ContainerMgr, i | |||
err = runv1alpha2(daemonconfig, containerMgr, imageMgr, volumeMgr, readyCh) | |||
default: | |||
readyCh <- false | |||
err = fmt.Errorf("invalid CRI version,failed to start CRI service") |
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.
Please add the specific invalid version number in the error message.
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.
Done.
e7ef62c
to
deb375d
Compare
I think there should be some rule to guide us:
In the future we will use container-debugger to judge error log, if one day, we will generate more than 1000+ messages, I do not think the debugger-tool would take effect. So, we need to add some guidance for us. @starnop Also cc @fuweid to guide us to have it. |
Signed-off-by: Starnop <starnop@163.com>
deb375d
to
29cba87
Compare
Codecov Report
@@ Coverage Diff @@
## master #2147 +/- ##
==========================================
- Coverage 64.41% 64.37% -0.05%
==========================================
Files 209 209
Lines 16662 16662
==========================================
- Hits 10733 10726 -7
- Misses 4603 4607 +4
- Partials 1326 1329 +3
|
LGTM |
Signed-off-by: Starnop starnop@163.com
Ⅰ. Describe what this PR did
Now,we should try to use
failed to do something
andsuccess to do something
when constructing error or log.Ⅱ. Does this pull request fix one issue?
None.
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews