Skip to content

Commit

Permalink
Merge pull request #119 from quickwit-oss/ddelemeny/quieter-log-level
Browse files Browse the repository at this point in the history
Log to Debug instead of Info
  • Loading branch information
ddelemeny authored Apr 15, 2024
2 parents fe3e009 + 32132da commit 5d12df8
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 5d12df8

Please sign in to comment.