scrape: fix typo. (#7712)

Signed-off-by: johncming <johncming@yahoo.com>
This commit is contained in:
johncming 2020-08-01 16:56:21 +08:00 committed by GitHub
parent 32c2d897ec
commit 5578c96307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1086,7 +1086,7 @@ func (sl *scrapeLoop) scrapeAndReport(interval, timeout time.Duration, last time
sl.lastScrapeSize = len(b) sl.lastScrapeSize = len(b)
} }
} else { } else {
level.Debug(sl.l).Log("msg", "Scrape failed", "err", scrapeErr.Error()) level.Debug(sl.l).Log("msg", "Scrape failed", "err", scrapeErr)
if errc != nil { if errc != nil {
errc <- scrapeErr errc <- scrapeErr
} }