You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Add the details according to the mode that is set
@@ -199,15 +207,37 @@ public Map<String, Object> getElasticData(SampleResult sr, BackendListenerContex
199
207
jsonObject = addDetails(sr, jsonObject);
200
208
break;
201
209
case"info":
202
-
if(!sr.isResponseCodeOK()) {
210
+
if(!sr.isSuccessful()) {
203
211
jsonObject = addDetails(sr, jsonObject);
204
212
}
205
213
break;
214
+
case"quiet":
215
+
break;
206
216
default:
207
-
logger.warn("The parameter \"es.test.mode\" isn't set properly. Two modes are allowed: debug and info. Debug sends request and response details to ElasticSearch. Info only sends the details if the response is an error, it should be used in production.");
217
+
logger.warn("The parameter \"es.test.mode\" isn't set properly. Three modes are allowed: debug ,info, and quiet.");
218
+
logger.warn(" -- \"debug\": sends request and response details to ElasticSearch. Info only sends the details if the response has an error.");
219
+
logger.warn(" -- \"info\": should be used in production");
220
+
logger.warn(" -- \"quiet\": should be used if you don't care to have the details.");
0 commit comments