Skip to content

Commit

Permalink
FIX: upgrading log for failed upload to error
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Fernandes <[email protected]>
  • Loading branch information
vhbfernandes committed Jun 8, 2023
1 parent 6622110 commit d8598fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/thanos/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -707,12 +707,12 @@ func startTSDBAndUpload(g *run.Group,
case <-uploadC:
// Upload on demand.
if err := upload(ctx); err != nil {
level.Warn(logger).Log("msg", "on demand upload failed", "err", err)
level.Error(logger).Log("msg", "on demand upload failed", "err", err)
}
uploadDone <- struct{}{}
case <-tick.C:
if err := upload(ctx); err != nil {
level.Warn(logger).Log("msg", "recurring upload failed", "err", err)
level.Error(logger).Log("msg", "recurring upload failed", "err", err)
}
}
}
Expand Down

0 comments on commit d8598fa

Please sign in to comment.