Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
damemi committed Jun 13, 2023
1 parent 65354b3 commit 571672c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exporter/collector/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,11 +599,13 @@ func (me *MetricsExporter) runWALReadAndExportLoop(ctx context.Context) {
// do one last final read/export then return
// otherwise the runner goroutine could leave some hanging metrics unexported
for {
fmt.Println("Reading WAL final time")
err := me.readWALAndExport(runCtx)
if err != nil {
if !errors.Is(err, wal.ErrOutOfRange) {
me.obs.log.Error(fmt.Sprintf("error flushing remaining WAL entries: %+v", err))
}
fmt.Println(err)
break
}
}
Expand Down

0 comments on commit 571672c

Please sign in to comment.