* Removed logger output used for debug.

This commit is contained in:
LevelX2 2014-02-16 02:23:26 +01:00
parent 489518c1e0
commit fb8c4fcbc3
2 changed files with 2 additions and 9 deletions

View file

@ -90,7 +90,7 @@ import org.apache.log4j.Logger;
*/ */
public class GameController implements GameCallback { public class GameController implements GameCallback {
private static ExecutorService gameExecutor = ThreadExecutor.getInstance().getGameExecutor(); private static final ExecutorService gameExecutor = ThreadExecutor.getInstance().getGameExecutor();
private static final Logger logger = Logger.getLogger(GameController.class); private static final Logger logger = Logger.getLogger(GameController.class);
private ConcurrentHashMap<UUID, GameSession> gameSessions = new ConcurrentHashMap<UUID, GameSession>(); private ConcurrentHashMap<UUID, GameSession> gameSessions = new ConcurrentHashMap<UUID, GameSession>();
@ -689,7 +689,6 @@ public class GameController implements GameCallback {
@Override @Override
public void gameResult(String result) { public void gameResult(String result) {
try { try {
logger.warn("Game Result: " + result);
endGame(result); endGame(result);
} catch (MageException ex) { } catch (MageException ex) {
logger.fatal("Game Result error", ex); logger.fatal("Game Result error", ex);

View file

@ -127,13 +127,7 @@ public class GameWatcher {
} }
public GameView getGameView() { public GameView getGameView() {
logger.warn("start getGameView"); return new GameView(game.getState(), game, this.isPlayer);
GameState gameState = game.getState();
logger.warn("start afterState");
GameView gameView = new GameView(gameState, game, this.isPlayer);
// return new GameView(game.getState(), game, this.isPlayer);
logger.warn("after getGameView");
return gameView;
} }
public GameEndView getGameEndView(UUID playerId, Match match) { public GameEndView getGameEndView(UUID playerId, Match match) {