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

Refine logs with upper case #3404

Merged
merged 1 commit into from
Mar 24, 2022
Merged

Refine logs with upper case #3404

merged 1 commit into from
Mar 24, 2022

Conversation

luolanzone
Copy link
Contributor

Signed-off-by: Lan Luo luola@vmware.com

@luolanzone luolanzone added the area/multi-cluster Issues or PRs related to multi cluster. label Mar 7, 2022
@luolanzone luolanzone requested review from tnqn and jianjuns March 7, 2022 03:03
@codecov-commenter
Copy link

codecov-commenter commented Mar 7, 2022

Codecov Report

Merging #3404 (4a44bd5) into main (3c88bc2) will decrease coverage by 0.92%.
The diff coverage is 25.49%.

Impacted file tree graph

@@            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     
Flag Coverage Δ
kind-e2e-tests 54.32% <ø> (-1.58%) ⬇️
unit-tests 43.08% <25.49%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...luster-controller/memberclusterannounce_webhook.go 55.55% <0.00%> (ø)
...lers/multicluster/commonarea/remote_common_area.go 23.56% <0.00%> (ø)
...llers/multicluster/leader_clusterset_controller.go 64.94% <0.00%> (ø)
...llers/multicluster/member_clusterset_controller.go 0.00% <0.00%> (ø)
...ntrollers/multicluster/serviceexport_controller.go 67.47% <30.00%> (ø)
...lticluster/commonarea/resourceimport_controller.go 70.24% <31.25%> (ø)
...trollers/multicluster/resourceexport_controller.go 69.39% <66.66%> (ø)
pkg/controller/egress/store/egressgroup.go 1.38% <0.00%> (-30.56%) ⬇️
pkg/agent/util/net.go 26.66% <0.00%> (-23.34%) ⬇️
pkg/agent/route/route_linux.go 30.81% <0.00%> (-19.41%) ⬇️
... and 21 more

jianjuns
jianjuns previously approved these changes Mar 7, 2022
} 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)
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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())
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed.

@luolanzone
Copy link
Contributor Author

@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.

tnqn
tnqn previously approved these changes Mar 8, 2022
Copy link
Member

@tnqn tnqn left a 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>
@luolanzone
Copy link
Contributor Author

luolanzone commented Mar 24, 2022

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.

@tnqn
Copy link
Member

tnqn commented Mar 24, 2022

/test-multicluster-e2e
/skip-all

@tnqn tnqn merged commit c8a3544 into antrea-io:main Mar 24, 2022
@luolanzone luolanzone deleted the refine-logs branch March 24, 2022 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/multi-cluster Issues or PRs related to multi cluster.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants