Adding some debug to figure out the problem with games disappearing.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user