From a88565a6648103c748ac6edc9c87f7e532bc758f Mon Sep 17 00:00:00 2001 From: Daniel Lipovetsky Date: Mon, 8 Jan 2024 09:32:46 -0800 Subject: [PATCH] Do not log node exists/shutdown status at default verbosity (#118) Previously, the controller logged two lines for every node approximately every 7 seconds, or about 1000 lines per node, per hour. Moreover, nearly identical messages are already logged in a different function, at verbosity level 1. --- pkg/provider/manager.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/provider/manager.go b/pkg/provider/manager.go index c80930ed9..36bb6c18c 100644 --- a/pkg/provider/manager.go +++ b/pkg/provider/manager.go @@ -194,10 +194,8 @@ func (n *nutanixManager) nodeExists(ctx context.Context, node *v1.Node) (bool, e if !strings.Contains(fmt.Sprint(err), "ENTITY_NOT_FOUND") { return false, err } - klog.Infof("Node %s does not exist!", node.Name) return false, nil } - klog.Infof("Node %s exists!", node.Name) return true, nil } @@ -215,10 +213,8 @@ func (n *nutanixManager) isNodeShutdown(ctx context.Context, node *v1.Node) (boo return false, err } if n.isVMShutdown(vm) { - klog.Infof("Node %s is shutdown!", node.Name) return true, nil } - klog.Infof("Node %s is not shutdown!", node.Name) return false, nil }