Skip to content

Commit

Permalink
debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Nov 27, 2023
1 parent d610f90 commit a081090
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion pkg/testing/tools/estools/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,22 @@ func performQueryForRawQuery(ctx context.Context, queryRaw map[string]interface{
return Documents{}, fmt.Errorf("error performing ES search: %w", err)
}

return handleDocsResponse(res)
docs, err := handleDocsResponse(res)

fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")

Check failure on line 538 in pkg/testing/tools/estools/elasticsearch.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

use of `fmt.Println` forbidden by pattern `fmt.Print.*` (forbidigo)
fmt.Println("Query:")

Check failure on line 539 in pkg/testing/tools/estools/elasticsearch.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

use of `fmt.Println` forbidden by pattern `fmt.Print.*` (forbidigo)
query, debugErr := json.MarshalIndent(queryRaw, "|", " ")
if debugErr != nil {
fmt.Println("Error marshalling 'queryRaw':", debugErr)

Check failure on line 542 in pkg/testing/tools/estools/elasticsearch.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

use of `fmt.Println` forbidden by pattern `fmt.Print.*` (forbidigo)
return docs, err
}
fmt.Println("Raw Query")

Check failure on line 545 in pkg/testing/tools/estools/elasticsearch.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

use of `fmt.Println` forbidden by pattern `fmt.Print.*` (forbidigo)
fmt.Println(string(query))

Check failure on line 546 in pkg/testing/tools/estools/elasticsearch.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

use of `fmt.Println` forbidden by pattern `fmt.Print.*` (forbidigo)
fmt.Println("Documents docs.Hits.Total.Value: ", docs.Hits.Total.Value)

Check failure on line 547 in pkg/testing/tools/estools/elasticsearch.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

use of `fmt.Println` forbidden by pattern `fmt.Print.*` (forbidigo)
fmt.Println("Documents len(docs.Hits.Hits): ", len(docs.Hits.Hits))

Check failure on line 548 in pkg/testing/tools/estools/elasticsearch.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

use of `fmt.Println` forbidden by pattern `fmt.Print.*` (forbidigo)
fmt.Println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")

Check failure on line 549 in pkg/testing/tools/estools/elasticsearch.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

use of `fmt.Println` forbidden by pattern `fmt.Print.*` (forbidigo)

return docs, err
}

// GetLogsForDatastream returns any logs associated with the datastream
Expand Down

0 comments on commit a081090

Please sign in to comment.