adding more logging

Original commit: elastic/x-pack-elasticsearch@5c20d662f0
This commit is contained in:
Martijn van Groningen 2016-11-24 09:11:53 +01:00
parent 118abf963b
commit 4562ec9d6c
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ public class TooManyJobsIT extends ESIntegTestCase {
assertEquals(1, postDataResponse.getDataCounts().getInputRecordCount());
logger.info("Posted data {} times", i);
} catch (Exception e) {
logger.info("Handling exception", e);
Throwable cause = ExceptionsHelper.unwrapCause(e.getCause());
assertEquals(ElasticsearchStatusException.class, cause.getClass());
assertEquals(RestStatus.TOO_MANY_REQUESTS, ((ElasticsearchStatusException) cause).status());