Skip to content

Commit

Permalink
Log to Debug instead of Info
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelemeny committed Apr 15, 2024
1 parent 643f90d commit 32132da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/quickwit/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down Expand Up @@ -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")

Expand All @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion pkg/quickwit/quickwit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 32132da

Please sign in to comment.