Skip to content

Commit 601579c

Browse files
Merge pull request #589 from aneeshkp/remove-ishaprofile
OCPBUGS-61367: Remove sidecar log is spamming IsHAProfile messages [release-4.19]
2 parents ac16da4 + d0ec79c commit 601579c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

plugins/ptp_operator/metrics/manager.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,8 @@ func (p *PTPEventManager) PrintStats() string {
521521

522522
// IsHAProfile ... if profile for ha found pass
523523
func (p *PTPEventManager) IsHAProfile(name string) bool {
524-
// Check if this profile is the HA profile (the one containing haProfiles setting)
525-
isHA := p.PtpConfigMapUpdates.HAProfile == name
526-
log.Debugf("IsHAProfile: profile=%s, HAProfile=%s, isHA=%t", name, p.PtpConfigMapUpdates.HAProfile, isHA)
527-
return isHA
524+
// Check if PtpSettings exist, if so proceed with confidence
525+
return p.PtpConfigMapUpdates.HAProfile == name
528526
}
529527

530528
// HAProfiles ... if profile for ha found pass the settings

0 commit comments

Comments
 (0)