Skip to content

Commit

Permalink
Improve logging at ha_tracker sync operation
Browse files Browse the repository at this point in the history
Signed-off-by: Nikos Angelopoulos <[email protected]>
  • Loading branch information
NickAnge committed Nov 19, 2024
1 parent dc3ddfa commit 5720679
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/distributor/ha_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,10 @@ func (h *haTracker) syncHATrackerStateOnStart(ctx context.Context) error {
return nil
}

level.Info(h.logger).Log("msg", "sync HA state on start: Listing keys from KV Store")
keys, err := h.client.List(ctx, "")
if err != nil {
level.Error(h.logger).Log("msg", "sync HA state on start: failed to list the keys ", "err", err)
return err
}

Expand Down

0 comments on commit 5720679

Please sign in to comment.