Skip to content

Commit

Permalink
TBS
Browse files Browse the repository at this point in the history
Signed-off-by: Björn Rabenstein <[email protected]>
  • Loading branch information
beorn7 authored Jun 6, 2024
1 parent c1cb032 commit 499e5a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions storage/diskmetricstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ func (dms *DiskMetricStore) Healthy() error {
// A pushgateway that cannot be written to should not be
// considered as healthy.
if len(dms.writeQueue) == cap(dms.writeQueue) {
error_msg := "write queue is full"
level.Error(dms.logger).Log("msg", error_msg)
return fmt.Errorf(error_msg)
err := fmt.Errorf("write queue is full")
level.Warn(dms.logger).Log("msg", err)
return err
}

return nil
Expand Down

0 comments on commit 499e5a2

Please sign in to comment.