Skip to content

Commit

Permalink
JBPAPP-11022 Remove unnecessary WARN log part II
Browse files Browse the repository at this point in the history
This is really when a newer server connects to the client
  • Loading branch information
clebertsuconic committed Oct 29, 2014
1 parent 8b7db75 commit 08c94dc
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,17 @@ else if (connection.getClientVersion() != request.getVersion())
}
catch (HornetQException e)
{
HornetQServerLogger.LOGGER.failedToCreateSession(e);
response = new HornetQExceptionMessage(e);

if (e.getType() == HornetQExceptionType.INCOMPATIBLE_CLIENT_SERVER_VERSIONS)
{
incompatibleVersion = true;
HornetQServerLogger.LOGGER.debug("Sending HornetQException after Incompatible client", e);
}
else
{
HornetQServerLogger.LOGGER.failedToCreateSession(e);
}

response = new HornetQExceptionMessage(e);
}
catch (Exception e)
{
Expand Down

0 comments on commit 08c94dc

Please sign in to comment.