add log levels
@@ -126,18 +126,18 @@ func (cd *ConfigData) deleteCM(obj interface{}) {
func (cd *ConfigData) load(cm v1.ConfigMap) {
if cm.Data == nil {
- glog.Infof("Configuration: No data defined in ConfigMap %s", cm.Name)
+ glog.V(4).Infof("Configuration: No data defined in ConfigMap %s", cm.Name)
return
}
// get resource filters
filters, ok := cm.Data["resourceFilters"]
if !ok {
- glog.Infof("Configuration: No resourceFilters defined in ConfigMap %s", cm.Name)
+ glog.V(4).Infof("Configuration: No resourceFilters defined in ConfigMap %s", cm.Name)
return
}
// filters is a string
if filters == "" {
- glog.Infof("Configuration: resourceFilters is empty in ConfigMap %s", cm.Name)
+ glog.V(4).Infof("Configuration: resourceFilters is empty in ConfigMap %s", cm.Name)
return
}
// parse and load the configuration
@@ -146,7 +146,7 @@ func (cd *ConfigData) load(cm v1.ConfigMap) {
newFilters := parseKinds(filters)
if reflect.DeepEqual(newFilters, cd.filters) {
- glog.Infof("Configuration: resourceFilters did not change in ConfigMap %s", cm.Name)
+ glog.V(4).Infof("Configuration: resourceFilters did not change in ConfigMap %s", cm.Name)
return
}
glog.V(4).Infof("Configuration: Old resource filters %v", cd.filters)
