Skip to content

Commit e448050

Browse files
committed
preserve stack trace on search history failure
1 parent d57e1a2 commit e448050

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

x-pack/qa/smoke-test-watcher-with-security/src/test/java/org/elasticsearch/smoketest/SmokeTestWatcherWithSecurityIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ private ObjectPath getWatchHistoryEntry(String watchId, String state) throws Exc
332332
assertThat(watchid, is(watchId));
333333
objectPathReference.set(objectPath);
334334
} catch (ResponseException e) {
335-
final String err = "Failed to perform search of watcher history - " + e;
336-
logger.info(err);
335+
final String err = "Failed to perform search of watcher history";
336+
logger.info(err, e);
337337
fail(err);
338338
}
339339
});

x-pack/qa/smoke-test-watcher/src/test/java/org/elasticsearch/smoketest/SmokeTestWatcherTestSuiteIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ private ObjectPath getWatchHistoryEntry(String watchId) throws Exception {
216216
assertThat("watch_id for hit 0 in watcher history", foundWatchId, is(watchId));
217217
objectPathReference.set(objectPath);
218218
} catch (ResponseException e) {
219-
final String err = "Failed to perform search of watcher history - " + e;
220-
logger.info(err);
219+
final String err = "Failed to perform search of watcher history";
220+
logger.info(err, e);
221221
fail(err);
222222
}
223223
});

0 commit comments

Comments
 (0)