mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
Change to debug logging.
This commit is contained in:
parent
245582303c
commit
9fb718c0c0
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue