Skip to content

Commit

Permalink
Improve logging at ha_tracker sync operation (#9958) (#9961)
Browse files Browse the repository at this point in the history
Signed-off-by: Nikos Angelopoulos <nikolaos.angelopoulos@grafana.com>
(cherry picked from commit 0caede4)

Co-authored-by: Nikos Angelopoulos <nikolaos.angelopoulos@grafana.com>
  • Loading branch information
grafanabot and NickAnge authored Nov 20, 2024
1 parent cb2a2b6 commit 203689a
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 203689a

Please sign in to comment.