Elasticsearch: Clean up query print leftover (#76543)

Clean query print left over
This commit is contained in:
NikolayTsvetkov 2023-10-13 18:17:09 +02:00 committed by GitHub
parent 5a62a97056
commit e0f32f4363
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,6 @@ func (e *elasticsearchDataQuery) execute() (*backend.QueryDataResponse, error) {
from := e.dataQueries[0].TimeRange.From.UnixNano() / int64(time.Millisecond)
to := e.dataQueries[0].TimeRange.To.UnixNano() / int64(time.Millisecond)
for _, q := range queries {
fmt.Printf("Query = %v", q)
if err := e.processQuery(q, ms, from, to); err != nil {
mq, _ := json.Marshal(q)
e.logger.Error("Failed to process query to multisearch request builder", "error", err, "query", string(mq), "queriesLength", len(queries), "duration", time.Since(start), "stage", es.StagePrepareRequest)