diff --git a/npm/pkg/controlplane/translation/translatePolicy.go b/npm/pkg/controlplane/translation/translatePolicy.go index fbb2516d95..0982acacb2 100644 --- a/npm/pkg/controlplane/translation/translatePolicy.go +++ b/npm/pkg/controlplane/translation/translatePolicy.go @@ -566,7 +566,5 @@ func TranslatePolicy(npObj *networkingv1.NetworkPolicy) (*policies.NPMNetworkPol } } } - klog.Infof("JUST-TRANSLATED-THIS-POLICY:\n%s", npmNetPol.String()) - klog.Infof("THIS-NPOBJ:\n%+v", npObj) return npmNetPol, nil } diff --git a/npm/pkg/dataplane/ioutil/restore_linux.go b/npm/pkg/dataplane/ioutil/restore_linux.go index c92b396aeb..1e5f894892 100644 --- a/npm/pkg/dataplane/ioutil/restore_linux.go +++ b/npm/pkg/dataplane/ioutil/restore_linux.go @@ -126,7 +126,6 @@ func (creator *FileCreator) ToString() string { func (creator *FileCreator) RunCommandWithFile(cmd string, args ...string) error { fileString := creator.ToString() - klog.Infof("beginning to run command for restorer:\nBEGIN-CREATOR-FILE-FOR-COMMAND-%s\n%s\nEND-CREATOR-FILE-FOR-COMMAND-%s", cmd, fileString, cmd) // TODO remove wasFileAltered, err := creator.runCommandOnceWithFile(fileString, cmd, args...) if err == nil { return nil @@ -134,8 +133,7 @@ func (creator *FileCreator) RunCommandWithFile(cmd string, args ...string) error commandString := cmd + " " + strings.Join(args, " ") for !creator.hasNoMoreRetries() { if wasFileAltered { - fileString = creator.ToString() - klog.Infof("rerunning command [%s] with new file:\n%s", commandString, fileString) + klog.Infof("rerunning command [%s] with new file", commandString) } else { klog.Infof("rerunning command [%s] with the same file", commandString) } diff --git a/npm/pkg/dataplane/ipsets/ipsetmanager.go b/npm/pkg/dataplane/ipsets/ipsetmanager.go index f2d5b10bf9..d815838cfe 100644 --- a/npm/pkg/dataplane/ipsets/ipsetmanager.go +++ b/npm/pkg/dataplane/ipsets/ipsetmanager.go @@ -273,7 +273,7 @@ func (iMgr *IPSetManager) ApplyIPSets() error { return nil } - klog.Infof("[IPSetManager] toAddUpdateCahe %+v \n ", iMgr.toAddOrUpdateCache) + klog.Infof("[IPSetManager] toAddUpdateCache %+v \n ", iMgr.toAddOrUpdateCache) klog.Infof("[IPSetManager] toDeleteCache %+v \n ", iMgr.toDeleteCache) iMgr.sanitizeDirtyCache() diff --git a/npm/pkg/dataplane/ipsets/ipsetmanager_linux.go b/npm/pkg/dataplane/ipsets/ipsetmanager_linux.go index 88ad1821cb..3c13c69ef6 100644 --- a/npm/pkg/dataplane/ipsets/ipsetmanager_linux.go +++ b/npm/pkg/dataplane/ipsets/ipsetmanager_linux.go @@ -343,8 +343,6 @@ func (iMgr *IPSetManager) updateDirtyKernelSets(saveFile []byte, creator *ioutil toAddOrUpdateHashedNames[hashedName] = prefixedName } - klog.Infof("beginning to parse ipset save file:\nBEGIN-IPSET-SAVE-FILE-FOR-APPLY-IPSETS\n%s\nEND-IPSET-SAVE-FILE-FOR-APPLY-IPSETS", string(saveFile)) // TODO remove eventually - // in each iteration, read a create line and any ensuing add lines readIndex := 0 var line []byte diff --git a/npm/pkg/dataplane/policies/policymanager.go b/npm/pkg/dataplane/policies/policymanager.go index 05c6e4c487..26fe824199 100644 --- a/npm/pkg/dataplane/policies/policymanager.go +++ b/npm/pkg/dataplane/policies/policymanager.go @@ -97,7 +97,6 @@ func (pMgr *PolicyManager) AddPolicy(policy *NPMNetworkPolicy, endpointList map[ if err := validatePolicy(policy); err != nil { return npmerrors.Errorf(npmerrors.AddPolicy, false, fmt.Sprintf("couldn't add malformed policy: %s", err.Error())) } - klog.Infof("PRINTING-CONTENTS-FOR-ADDING-POLICY:\n%s", policy.String()) // Call actual dataplane function to apply changes err := pMgr.addPolicy(policy, endpointList) @@ -115,11 +114,8 @@ func (pMgr *PolicyManager) isFirstPolicy() bool { func (pMgr *PolicyManager) RemovePolicy(policyKey string, endpointList map[string]string) error { policy, ok := pMgr.GetPolicy(policyKey) - klog.Infof("PRINTING-CONTENTS-FOR-REMOVING-POLICY:\n%s", policy.String()) if !ok { - klog.Infof("DEBUGME-POLICY-DOESN'T-EXIST-WHEN-DELETING") - klog.Infof("POLICY-CACHE: %+v", pMgr.policyMap.cache) return nil }