Adding some debug to figure out the problem with games disappearing.

This commit is contained in:
marcins78@gmail.com
2011-09-13 12:52:40 +00:00
parent 5ec0210b60
commit 6bc95e8167
2 changed files with 4 additions and 1 deletions

View File

@@ -94,6 +94,7 @@ public class LotroServer {
for (Map.Entry<String, Date> finishedGame : copy.entrySet()) {
if (finishedGame.getValue().getTime() > currentTime + _timeToGameDeath) {
String gameId = finishedGame.getKey();
log.debug("Removing stale game: " + gameId);
_runningGames.remove(gameId);
_chatServer.destroyChatRoom(getChatRoomName(gameId));
_finishedGamesTime.remove(gameId);

View File

@@ -522,6 +522,8 @@ public class ServerResource {
}
private void sendError(Response.Status status) {
throw new WebApplicationException(status);
WebApplicationException webApplicationException = new WebApplicationException(status);
_logger.debug("Sending error to user: " + status.getStatusCode(), webApplicationException);
throw webApplicationException;
}
}