Skip to content

Commit

Permalink
Use correct variable to log (#214)
Browse files Browse the repository at this point in the history
* Fix gtp matching typo

* Fix to sort GTPs and add logs

* Use the right variable for logging

Signed-off-by: sa <sushanth_a@intuit.com>
  • Loading branch information
aattuluri authored and sa committed Jul 21, 2022
1 parent 379fea1 commit e4ba70e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admiral/pkg/clusters/serviceentry.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func modifyServiceEntryForNewServiceOrPod(event admiral.EventType, env string, s
gtpsInNamespace := rc.GlobalTraffic.Cache.Get(gtpKey, namespace)
if len(gtpsInNamespace) > 0 {
if log.IsLevelEnabled(log.DebugLevel) {
log.Debugf("GTPs found for identity=%s in env=%s namespace=%s gtp=%v", sourceIdentity, env, namespace, gtps)
log.Debugf("GTPs found for identity=%s in env=%s namespace=%s gtp=%v", sourceIdentity, env, namespace, gtpsInNamespace)
}
gtps[rc.ClusterID] = gtpsInNamespace
} else {
Expand Down

0 comments on commit e4ba70e

Please sign in to comment.