Revert "[ARTEMIS-1770] Log warning when connection is closed"
This reverts commit 20aed7f864
.
This commit is contained in:
parent
3e9ee356fc
commit
b1538e7c48
|
@ -442,9 +442,4 @@ public interface ActiveMQClientLogger extends BasicLogger {
|
||||||
@Message(id = 214029, value = "Unexpected response from HTTP server: %s")
|
@Message(id = 214029, value = "Unexpected response from HTTP server: %s")
|
||||||
void unexpectedResponseFromHttpServer(Object response);
|
void unexpectedResponseFromHttpServer(Object response);
|
||||||
|
|
||||||
@LogMessage(level = Logger.Level.WARN)
|
|
||||||
@Message(id = 214034, value = "Connection closed: {0} - {1}",
|
|
||||||
format = Message.Format.MESSAGE_FORMAT)
|
|
||||||
void connectionClosedWarn(ActiveMQExceptionType type, String message);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,6 @@ import org.apache.activemq.artemis.api.core.ActiveMQBuffer;
|
||||||
import org.apache.activemq.artemis.api.core.ActiveMQBuffers;
|
import org.apache.activemq.artemis.api.core.ActiveMQBuffers;
|
||||||
import org.apache.activemq.artemis.api.core.ActiveMQException;
|
import org.apache.activemq.artemis.api.core.ActiveMQException;
|
||||||
import org.apache.activemq.artemis.api.core.ActiveMQExceptionType;
|
import org.apache.activemq.artemis.api.core.ActiveMQExceptionType;
|
||||||
import org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException;
|
|
||||||
import org.apache.activemq.artemis.api.core.Message;
|
import org.apache.activemq.artemis.api.core.Message;
|
||||||
import org.apache.activemq.artemis.api.core.SimpleString;
|
import org.apache.activemq.artemis.api.core.SimpleString;
|
||||||
import org.apache.activemq.artemis.api.core.client.ClientConsumer;
|
import org.apache.activemq.artemis.api.core.client.ClientConsumer;
|
||||||
|
@ -1172,11 +1171,6 @@ public final class ClientSessionImpl implements ClientSessionInternal, FailureLi
|
||||||
startCall();
|
startCall();
|
||||||
try {
|
try {
|
||||||
sessionContext.xaEnd(xid, flags);
|
sessionContext.xaEnd(xid, flags);
|
||||||
} catch (ActiveMQNotConnectedException ex) {
|
|
||||||
ActiveMQClientLogger.LOGGER.connectionClosedWarn(ex.getType(), ex.getMessage());
|
|
||||||
if (logger.isDebugEnabled()) {
|
|
||||||
logger.debug(ex.getMessage(), ex);
|
|
||||||
}
|
|
||||||
} finally {
|
} finally {
|
||||||
endCall();
|
endCall();
|
||||||
}
|
}
|
||||||
|
@ -1381,11 +1375,6 @@ public final class ClientSessionImpl implements ClientSessionInternal, FailureLi
|
||||||
|
|
||||||
try {
|
try {
|
||||||
sessionContext.xaRollback(xid, wasStarted);
|
sessionContext.xaRollback(xid, wasStarted);
|
||||||
} catch (ActiveMQNotConnectedException ex) {
|
|
||||||
ActiveMQClientLogger.LOGGER.connectionClosedWarn(ex.getType(), ex.getMessage());
|
|
||||||
if (logger.isDebugEnabled()) {
|
|
||||||
logger.debug(ex.getMessage(), ex);
|
|
||||||
}
|
|
||||||
} finally {
|
} finally {
|
||||||
if (wasStarted) {
|
if (wasStarted) {
|
||||||
start();
|
start();
|
||||||
|
|
Loading…
Reference in New Issue