Skip to content

Commit c001b9e

Browse files
colinwernerjbonofre
authored andcommitted
don't print stack traces when stopping or stopped (#1414)
Co-authored-by: colin <[email protected]> (cherry picked from commit 9c3b38a)
1 parent 990a8d6 commit c001b9e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

activemq-http/src/main/java/org/apache/activemq/transport/http/HttpClientTransport.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,11 @@ public void run() {
206206
stream.close();
207207
}
208208
} catch (Exception e) { // handle RuntimeException from unmarshal
209-
onException(IOExceptionSupport.create("Failed to perform GET on: " + remoteUrl + " Reason: " + e.getMessage(), e));
209+
if (isStopped() || isStopping()) {
210+
LOG.debug("While stopping/stopped failed to perform GET on: " + remoteUrl);
211+
} else {
212+
onException(IOExceptionSupport.create("Failed to perform GET on: " + remoteUrl + " Reason: " + e.getMessage(), e));
213+
}
210214
break;
211215
} finally {
212216
if (answer != null) {

0 commit comments

Comments
 (0)