From 57206796aa08f8ee4950e46804b32a9d0aade198 Mon Sep 17 00:00:00 2001 From: Nikos Angelopoulos Date: Tue, 19 Nov 2024 18:15:23 +0100 Subject: [PATCH] Improve logging at ha_tracker sync operation Signed-off-by: Nikos Angelopoulos --- 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 }