From 87c0cfe5933aa0a5175eb1a5f606c06e7c1667f5 Mon Sep 17 00:00:00 2001 From: Mahan Zendedel DH Date: Sun, 14 Apr 2024 16:58:39 +0400 Subject: [PATCH] fix: add logs to cat indices --- pkg/kaytu-es-sdk/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kaytu-es-sdk/index.go b/pkg/kaytu-es-sdk/index.go index 70672c8..f326591 100644 --- a/pkg/kaytu-es-sdk/index.go +++ b/pkg/kaytu-es-sdk/index.go @@ -34,7 +34,7 @@ func (c Client) CreateIndexIfNotExist(ctx context.Context, logger *zap.Logger, i } func (c Client) ListIndices(ctx context.Context, logger *zap.Logger) ([]string, error) { - res, err := c.es.Cat.Indices(c.es.Cat.Indices.WithContext(ctx)) + res, err := c.es.Cat.Indices(c.es.Cat.Indices.WithBytes("{}"), c.es.Cat.Indices.WithContext(ctx)) defer CloseSafe(res) if err != nil { logger.Error("failure while listing indices", zap.Error(err), zap.Any("response", res))