Change to debug logging.

This commit is contained in:
LevelX2 2014-07-23 08:10:04 +02:00
parent 245582303c
commit 9fb718c0c0

View file

@ -66,12 +66,12 @@ public class ChatSession {
}
synchronized public void kill(UUID userId, DisconnectReason reason) {
logger.debug("ChatSession.kill chatSession: " + chatId + " userId: " + userId + " reason: " + (reason == null?"null":reason.toString())
+ " clients.size " + clients.size() + " userid " + (clients.containsKey(userId) ?"contained":"NOT contained"));
try {
if (userId != null && clients.containsKey(userId)) {
logger.debug("ChatSession.kill chatSession: " + chatId + " userId: " + userId + " reason: " + (reason == null?"null":reason.toString())
+ " clients.size " + clients.size());
String userName = clients.get(userId);
logger.debug((userName == null ? "[null]" :userName) + " leaves chat: " + (chatId == null?"[null]":chatId));
clients.remove(userId);
String message = null;
switch (reason) {