mirror of https://github.com/apache/activemq.git
[AMQ-8252] Doesn't display warn stack trace for stomp (regression compared to 5.15.x)
This commit is contained in:
parent
0348938952
commit
ceaeaa986b
|
@ -247,7 +247,12 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
|||
}
|
||||
|
||||
private boolean suppressed(IOException e) {
|
||||
return !connector.isWarnOnRemoteClose() && ((e instanceof SocketException && e.getMessage().indexOf("reset") != -1) || e instanceof EOFException);
|
||||
return (isStomp() || !connector.isWarnOnRemoteClose()) && ((e instanceof SocketException && e.getMessage().indexOf("reset") != -1) || e instanceof EOFException);
|
||||
}
|
||||
|
||||
private boolean isStomp() {
|
||||
URI uri = connector.getUri();
|
||||
return uri != null && uri.getScheme() != null && uri.getScheme().indexOf("stomp") != -1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue