Skip to content

Commit e5b9874

Browse files
committed
Log interrupted exception at info level
References #27
1 parent 7c5e466 commit e5b9874

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,11 @@ public Integer call() throws Exception {
671671
confirmationHandler);
672672
}
673673
} catch (Exception e) {
674-
LOGGER.warn("Publisher #{} crashed", i, e);
674+
if (e instanceof InterruptedException) {
675+
LOGGER.info("Publisher #{} thread interrupted", i, e);
676+
} else {
677+
LOGGER.warn("Publisher #{} crashed", i, e);
678+
}
675679
}
676680
};
677681
})

0 commit comments

Comments
 (0)