-
Notifications
You must be signed in to change notification settings - Fork 346
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
Refine logs with upper case #3404
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3404 +/- ##
==========================================
- Coverage 65.59% 64.66% -0.93%
==========================================
Files 277 277
Lines 27264 27264
==========================================
- Hits 17884 17631 -253
- Misses 7486 7768 +282
+ Partials 1894 1865 -29
Flags with carried forward coverage won't be shown. Click here to find out more.
|
} else if changed { | ||
klog.InfoS("update ResourceImport for ResoureExport", "resourceimport", resImportName.String(), "resourceexport", req.NamespacedName) | ||
klog.InfoS("Updating ResourceImport for ResoureExport", "resourceimport", resImportName.String(), "resourceexport", req.NamespacedName) |
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.
why updating and creating use different level logs?
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.
I was trying to reduce logs, let me make them consistent.
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.
fixed.
@@ -348,7 +348,7 @@ func (r *ResourceExportReconciler) refreshEndpointsResourceImport( | |||
svcResExport := &mcsv1alpha1.ResourceExport{} | |||
err := r.Client.Get(ctx, svcResExportName, svcResExport) | |||
if err != nil && apierrors.IsNotFound(err) { | |||
return newResImport, false, fmt.Errorf("failed to get corresponding Service type of ResourceExport: " + svcResExportName.String()) | |||
return newResImport, false, fmt.Errorf("Failed to get corresponding Service type of ResourceExport: " + svcResExportName.String()) |
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.
error message shouldn't be capitalized
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.
fixed.
@tnqn Could you please review again, this is a log refinement, so no hurry to merge it in case it has conflicts with other MC PR, thanks. |
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
Signed-off-by: Lan Luo <luola@vmware.com>
Hi @tnqn, I have rebased this to latest main codes and fix conflicts, it should have no conflicts with other on-going MC PRs, I suppose it can be merged now. thanks. |
/test-multicluster-e2e |
Signed-off-by: Lan Luo luola@vmware.com