Skip to content

Commit a268ed1

Browse files
committed
Log interrupted exception at info level
References #27
1 parent 83d9e6e commit a268ed1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/rabbitmq/stream/perf/StreamPerfTest.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,9 @@ public Integer call() throws Exception {
672672
confirmationHandler);
673673
}
674674
} catch (Exception e) {
675-
if (e instanceof InterruptedException) {
675+
if (e instanceof InterruptedException
676+
|| (e.getCause() != null
677+
&& e.getCause() instanceof InterruptedException)) {
676678
LOGGER.info("Publisher #{} thread interrupted", i, e);
677679
} else {
678680
LOGGER.warn("Publisher #{} crashed", i, e);

0 commit comments

Comments
 (0)