From 0caede48ebb4818c2d6de3444986f3c739a7b0c2 Mon Sep 17 00:00:00 2001 From: Nikos Angelopoulos <nikolaos.angelopoulos@grafana.com> Date: Wed, 20 Nov 2024 09:42:36 +0100 Subject: [PATCH] Improve logging at ha_tracker sync operation (#9958) Signed-off-by: Nikos Angelopoulos <nikolaos.angelopoulos@grafana.com> --- pkg/distributor/ha_tracker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/distributor/ha_tracker.go b/pkg/distributor/ha_tracker.go index d663470d291..3f2bcfcf430 100644 --- a/pkg/distributor/ha_tracker.go +++ b/pkg/distributor/ha_tracker.go @@ -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 }