Debug logging for Issue#19

This commit is contained in:
magenoxx 2012-07-18 13:57:54 +04:00
parent 9c6dc78842
commit c304812770
5 changed files with 55 additions and 26 deletions

View file

@ -612,6 +612,10 @@ public class GameController implements GameCallback {
if (!found) {
// something wrong - it may cause game freezes
logger.warn("WARNING! GameController.sendMessage - couldn't find session for action execution. Player: " + player.getName());
// log additional information
logger.warn(" action player: " + player.getName() + ", id: " + player.getId());
Player priorityPlayer = game.getPlayer(game.getPriorityPlayerId());
logger.warn(" priority player: " + priorityPlayer.getName() + ", id: " + priorityPlayer.getId());
}
}
} else {