From 32132da20a9086e0ca774479e0753204016a6947 Mon Sep 17 00:00:00 2001 From: Damien de Lemeny Date: Mon, 15 Apr 2024 09:05:23 -0500 Subject: [PATCH] Log to Debug instead of Info --- pkg/quickwit/client/client.go | 6 +++--- pkg/quickwit/quickwit.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/quickwit/client/client.go b/pkg/quickwit/client/client.go index 7c885ad..c11fb19 100644 --- a/pkg/quickwit/client/client.go +++ b/pkg/quickwit/client/client.go @@ -82,7 +82,7 @@ func (c *baseClientImpl) executeBatchRequest(uriPath, uriQuery string, requests } func (c *baseClientImpl) encodeBatchRequests(requests []*multiRequest) ([]byte, error) { - c.logger.Info("Encoding batch requests to json", "batch requests", len(requests)) + c.logger.Debug("Encoding batch requests to json", "batch requests", len(requests)) start := time.Now() payload := bytes.Buffer{} @@ -130,7 +130,7 @@ func (c *baseClientImpl) executeRequest(method, uriPath, uriQuery string, body [ return nil, err } - c.logger.Info("Executing request", "url", req.URL.String(), "method", method) + c.logger.Debug("Executing request", "url", req.URL.String(), "method", method) req.Header.Set("Content-Type", "application/x-ndjson") @@ -149,7 +149,7 @@ func (c *baseClientImpl) executeRequest(method, uriPath, uriQuery string, body [ } func (c *baseClientImpl) ExecuteMultisearch(r *MultiSearchRequest) (*MultiSearchResponse, error) { - c.logger.Info("Executing multisearch", "search requests", r.Requests) + c.logger.Debug("Executing multisearch", "search requests", r.Requests) multiRequests := c.createMultiSearchRequests(r.Requests) queryParams := c.getMultiSearchQueryParameters() diff --git a/pkg/quickwit/quickwit.go b/pkg/quickwit/quickwit.go index 4650230..b13d3b0 100644 --- a/pkg/quickwit/quickwit.go +++ b/pkg/quickwit/quickwit.go @@ -166,7 +166,7 @@ func (ds *QuickwitDatasource) CallResource(ctx context.Context, req *backend.Cal qwUrl.RawQuery = resourcePath.RawQuery qwUrl.Path = path.Join(qwUrl.Path, resourcePath.Path) - qwlog.Info("CallResource", "url", qwUrl.String()) + qwlog.Debug("CallResource", "url", qwUrl.String()) request, err := http.NewRequestWithContext(ctx, req.Method, qwUrl.String(), bytes.NewBuffer(req.Body)) if err != nil {