Refactor: move logging of ipset entries down to ipset package

This commit is contained in:
Bryan Boreham committed 2017-05-30 14:11:33 +00:00
1 parent 9d29da8d27
commit fa56ad8bc3
3 files changed
+7 -5

No files matched your search

-2
View File
@@ -43,12 +43,10 @@ func (s *selector) matches(labelMap map[string]string) bool {
}
func (s *selector) addEntry(entry string) error {
common.Log.Infof("adding entry %s to %s", entry, s.spec.ipsetName)
return s.ips.AddEntry(s.spec.ipsetName, entry)
}
func (s *selector) delEntry(entry string) error {
common.Log.Infof("deleting entry %s from %s", entry, s.spec.ipsetName)
return s.ips.DelEntry(s.spec.ipsetName, entry)
}