* Changes to logging.

This commit is contained in:
LevelX2 2014-08-03 15:01:33 +02:00
parent 9bcbdbb73d
commit 9f6555240a
10 changed files with 57 additions and 23 deletions

View file

@ -69,10 +69,10 @@ public class ChatSession {
try {
if (userId != null && clients.containsKey(userId)) {
String userName = clients.get(userId);
clients.remove(userId);
logger.debug("ChatSession.kill chatSession: " + chatId + " userId: " + userId + " reason: " + (reason == null?"null":reason.toString())
+ " clients.size " + clients.size());
String userName = clients.get(userId);
+ " clients.size " + clients.size());
String message = null;
switch (reason) {
case Disconnected:
@ -90,7 +90,7 @@ public class ChatSession {
}
}
} catch(Exception ex) {
logger.fatal(ex);
logger.fatal("ChatSession.kill exception: " + ex.toString());
}
}
@ -157,4 +157,7 @@ public class ChatSession {
return clients.containsKey(userId);
}
public ConcurrentHashMap<UUID, String> getClients() {
return clients;
}
}