forked from External/mage
added additional logging + keep session alive for most connection errors
This commit is contained in:
parent
0dff1ac743
commit
b9eac322d2
4 changed files with 13 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue