Skip to content

Commit

Permalink
Fix log level
Browse files Browse the repository at this point in the history
  • Loading branch information
dewey committed Aug 18, 2018
1 parent 036fc55 commit 417e219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (r *Runner) Start() {
wg.Add(1)
go func(cp plugin.Plugin) {
start := time.Now()
log.With(r.l, "plugin", cp.String()).Log("msg", "scrape started")
level.Info(log.With(r.l, "plugin", cp.String())).Log("msg", "scrape started")
// TODO(dewey): Do I need to wg.Done() if it errors?
ss, err := r.runPlugin(cp)
if err != nil {
Expand All @@ -89,7 +89,7 @@ func (r *Runner) Start() {
duration := time.Since(start)
scrapesDurationHistogram.WithLabelValues(cp.String()).Observe(duration.Seconds())
pluginItemsScraped.WithLabelValues(cp.String()).Set(float64(ss.Items))
log.With(r.l, "plugin", cp.String()).Log("msg", "scrape finished", "feed_items", ss.Items)
level.Info(log.With(r.l, "plugin", cp.String())).Log("msg", "scrape finished", "feed_items", ss.Items)
}(cp)
}
wg.Wait()
Expand Down

0 comments on commit 417e219

Please sign in to comment.