added additional logging + keep session alive for most connection errors

This commit is contained in:
BetaSteward 2011-05-10 23:57:47 -04:00
parent 0dff1ac743
commit b9eac322d2
4 changed files with 13 additions and 7 deletions

View file

@ -113,7 +113,7 @@ public class ServerImpl extends RemoteServer implements Server {
if (version.compareTo(Main.getVersion()) != 0)
throw new MageException("Wrong client version " + version + ", expecting version " + Main.getVersion());
sessionId = SessionManager.getInstance().createSession(userName, clientId);
logger.info("Session " + sessionId + " created for user " + userName + " at " + getClientHost());
logger.info("User " + userName + " connected from " + getClientHost());
} catch (Exception ex) {
handleException(ex);
}