lib/promscrape/discovery/kubernetes: remove debug lines left after the commit 133b288681

This commit is contained in:
Aliaksandr Valialkin 2021-03-12 11:21:20 +02:00
parent ca4d5ce037
commit def014eb75

View file

@ -207,11 +207,9 @@ func getURLWatcher(role, apiURL string, proxyURL *url.URL, ac *promauth.Config)
key := fmt.Sprintf("url=%s, proxyURL=%v, authConfig=%s", apiURL, proxyURL, ac.String())
urlWatchersLock.Lock()
uw := urlWatchers[key]
logger.Infof("found watcher for key=%s", key)
if uw == nil {
uw = newURLWatcher(role, apiURL, proxyURL, ac)
urlWatchers[key] = uw
logger.Infof("registered watcher for key=%s", key)
}
urlWatchersLock.Unlock()
return uw