Skip to content

Commit

Permalink
Merge pull request oliver006#125 from oliver006/oh_dont_log_error_on_…
Browse files Browse the repository at this point in the history
…CONFIG

on CONFIG error log Debugf() only
  • Loading branch information
oliver006 authored Dec 6, 2017
2 parents 80071da + 5c77da6 commit a0d9e4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,14 +582,14 @@ func (e *Exporter) scrapeRedisHost(scrapes chan<- scrapeResult, addr string, idx
if config, err := redis.Strings(c.Do("CONFIG", "GET", "*")); err == nil {
extractConfigMetrics(config, addr, e.redis.Aliases[idx], scrapes)
} else {
log.Errorf("redis err: %s", err)
log.Debugf("Redis CONFIG err: %s", err)
}

info, err := redis.String(c.Do("INFO", "ALL"))
if err == nil {
e.extractInfoMetrics(info, addr, e.redis.Aliases[idx], scrapes)
} else {
log.Errorf("redis err: %s", err)
log.Errorf("Redis INFO err: %s", err)
return err
}

Expand Down

0 comments on commit a0d9e4c

Please sign in to comment.