We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 903060e commit 872e59eCopy full SHA for 872e59e
src/Elasticsearch.Net/Domain/ElasticsearchResponse.cs
@@ -196,12 +196,19 @@ public override string ToString()
196
else if (typeof(T) == typeof(byte[]))
197
response = (this.Response as byte[]).Utf8String();
198
199
+ string requestJson = null;
200
+
201
+ if (r.Request != null)
202
+ {
203
+ requestJson = r.Request.Utf8String();
204
+ }
205
206
var print = _printFormat.F(
207
Environment.NewLine,
208
r.HttpStatusCode.HasValue ? r.HttpStatusCode.Value.ToString(CultureInfo.InvariantCulture) : "-1",
209
r.RequestMethod,
210
r.RequestUrl,
- r.Request,
211
+ requestJson,
212
response
213
);
214
if (!this.Success && e != null)
0 commit comments