Skip to content

Commit b4dbc11

Browse files
committed
ref(logging): improve logging for invalid sampler results and filtering
Signed-off-by: Johnny Hujol <itudoben@users.noreply.github.com>
1 parent 6a22e1f commit b4dbc11

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/io/github/delirius325/jmeter/backendlistener/elasticsearch/ElasticsearchBackendClient.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,6 @@ public void handleSampleResults(List<SampleResult> results, BackendListenerConte
263263
e.printStackTrace();
264264
}
265265
}
266-
else {
267-
logger.warn(String.format("Not valid sampler result %s: %s", sr.getSampleLabel(), respString));
268-
}
269266
}
270267

271268
if (this.sender.getListSize() >= this.bulkSize) {
@@ -328,7 +325,7 @@ private boolean validateSample(BackendListenerContext context, SampleResult sr)
328325
break;
329326
}
330327
else {
331-
logger.warn(String.format("Invalidate sample label %s, it may start with '!!' or it may not contain filter %s. " +
328+
logger.warn(String.format("Filter out sample label %s, it may start with '!!' or it may not match the filter %s. " +
332329
"Check the %s property value in the JMX file. Leave it empty to increase validation", sampleLabel, filter, ES_SAMPLE_FILTER));
333330
valid = false;
334331
}

0 commit comments

Comments
 (0)