From 845db2d5d40597d20c6e23cf2838179ac92435ba Mon Sep 17 00:00:00 2001 From: jbertram Date: Tue, 28 Oct 2014 16:26:03 -0500 Subject: [PATCH] JBPAPP-11022 Remove unnecessary WARN log --- .../core/protocol/core/impl/HornetQPacketHandler.java | 1 - .../java/org/hornetq/core/server/HornetQServerLogger.java | 5 ----- 2 files changed, 6 deletions(-) diff --git a/hornetq-server/src/main/java/org/hornetq/core/protocol/core/impl/HornetQPacketHandler.java b/hornetq-server/src/main/java/org/hornetq/core/protocol/core/impl/HornetQPacketHandler.java index ceb2528ab55..47c8388218e 100644 --- a/hornetq-server/src/main/java/org/hornetq/core/protocol/core/impl/HornetQPacketHandler.java +++ b/hornetq-server/src/main/java/org/hornetq/core/protocol/core/impl/HornetQPacketHandler.java @@ -131,7 +131,6 @@ private void handleCreateSession(final CreateSessionMessage request) Version version = server.getVersion(); if (!version.isCompatible(request.getVersion())) { - HornetQServerLogger.LOGGER.incompatibleVersion(request.getVersion(), connection.getRemoteAddress(), version.getFullVersion()); throw HornetQMessageBundle.BUNDLE.incompatibleClientServer(); } diff --git a/hornetq-server/src/main/java/org/hornetq/core/server/HornetQServerLogger.java b/hornetq-server/src/main/java/org/hornetq/core/server/HornetQServerLogger.java index d2a33757891..3309946bb48 100644 --- a/hornetq-server/src/main/java/org/hornetq/core/server/HornetQServerLogger.java +++ b/hornetq-server/src/main/java/org/hornetq/core/server/HornetQServerLogger.java @@ -567,11 +567,6 @@ public interface HornetQServerLogger extends BasicLogger @Message(id = 222063, value = "Error processing IOCallback code = {0} message = {1}", format = Message.Format.MESSAGE_FORMAT) void errorProcessingIOCallback(Integer errorCode, String errorMessage); - @LogMessage(level = Logger.Level.WARN) - @Message(id = 222064, value = "Client with version {0} and address {1} is not compatible with server version {2}. Please ensure all clients and servers are upgraded to the same version for them to interoperate properly", - format = Message.Format.MESSAGE_FORMAT) - void incompatibleVersion(Integer version, String remoteAddress, String fullVersion); - @LogMessage(level = Logger.Level.WARN) @Message(id = 222065, value = "Client is not being consistent on the request versioning. It just sent a version id={0} while it informed {1} previously", format = Message.Format.MESSAGE_FORMAT) void incompatibleVersionAfterConnect(int version, int clientVersion);