Skip to content

Commit

Permalink
fix: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahanmmi committed Dec 27, 2023
1 parent 8ab9f92 commit bba4c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pipeline/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func SendToPipeline(ingestionPipelineEndpoint string, resourcesToSend []kafka.Do
bodyStr = string(bodyBytes)
}
}
return fmt.Errorf("failed to send resources to OpenSearch, statusCode=%d, body=%s", resp.StatusCode, bodyStr)
return fmt.Errorf("failed to send resources to OpenSearch, statusCode=%d, body=%s, requestSize=%d", resp.StatusCode, bodyStr, len(jsonResourcesToSend))
}
}
return nil
Expand Down

0 comments on commit bba4c07

Please sign in to comment.