Skip to content

Commit 1396152

Browse files
committed
fix duplicate duration in log
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
1 parent 5d6c8ef commit 1396152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prometheus/collector/collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ func (c *Collector) run() {
336336
c.logger.With(
337337
slog.Float64("duration", c.lastScrapeDuration.Seconds()),
338338
slog.Time("nextRun", c.nextScrapeTime.UTC()),
339-
).Info("finished metrics collection", slog.Duration("duration", *c.sleepTime))
339+
).Info("finished metrics collection")
340340
}
341341

342342
// collectRun starts collector run and handles panics

0 commit comments

Comments
 (0)