Lint-fix: errcheck. Partial fix to #261

This commit is contained in:
Calle Pettersson
2018-10-05 07:29:56 +02:00
committed by Calle Pettersson
parent e24e0dc9f5
commit a171401f57
5 changed files with 24 additions and 7 deletions

View File

@@ -194,7 +194,7 @@ func (c *ProcessCollector) collect(ch chan<- prometheus.Metric) (*prometheus.Des
var dst_wp []WorkerProcess
q_wp := queryAll(&dst_wp)
if err := wmi.QueryNamespace(q_wp, &dst_wp, "root\\WebAdministration"); err != nil {
log.Warnf("failed querying worker processes: %s", err)
log.Debugf("Could not query WebAdministration namespace for IIS worker processes: %v. Skipping", err)
}
for _, process := range dst {