Browse Source

scraping errors will show in the log when debug mode is enabled (#3135)

Signed-off-by: Krasi Georgiev <krasi.root@gmail.com>
pull/3119/merge
Krasi Georgiev 7 years ago committed by Brian Brazil
parent
commit
153cb0cbe3
  1. 7
      retrieval/scrape.go

7
retrieval/scrape.go

@ -637,8 +637,11 @@ mainLoop:
var b []byte
if scrapeErr == nil {
b = buf.Bytes()
} else if errc != nil {
errc <- scrapeErr
} else {
sl.l.With("err", scrapeErr.Error()).Debug("scrape failed")
if errc != nil {
errc <- scrapeErr
}
}
// A failed scrape is the same as an empty scrape,

Loading…
Cancel
Save