From fb8c4fcbc3f9d9143e932de2d1f4293853d75a7d Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 16 Feb 2014 02:23:26 +0100 Subject: [PATCH] * Removed logger output used for debug. --- .../src/main/java/mage/server/game/GameController.java | 3 +-- .../src/main/java/mage/server/game/GameWatcher.java | 8 +------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/Mage.Server/src/main/java/mage/server/game/GameController.java b/Mage.Server/src/main/java/mage/server/game/GameController.java index 2398914379..fd9dc8166b 100644 --- a/Mage.Server/src/main/java/mage/server/game/GameController.java +++ b/Mage.Server/src/main/java/mage/server/game/GameController.java @@ -90,7 +90,7 @@ import org.apache.log4j.Logger; */ 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 ConcurrentHashMap gameSessions = new ConcurrentHashMap(); @@ -689,7 +689,6 @@ public class GameController implements GameCallback { @Override public void gameResult(String result) { try { - logger.warn("Game Result: " + result); endGame(result); } catch (MageException ex) { logger.fatal("Game Result error", ex); diff --git a/Mage.Server/src/main/java/mage/server/game/GameWatcher.java b/Mage.Server/src/main/java/mage/server/game/GameWatcher.java index 274056c938..ff492d0981 100644 --- a/Mage.Server/src/main/java/mage/server/game/GameWatcher.java +++ b/Mage.Server/src/main/java/mage/server/game/GameWatcher.java @@ -127,13 +127,7 @@ public class GameWatcher { } public GameView getGameView() { - logger.warn("start getGameView"); - 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; + return new GameView(game.getState(), game, this.isPlayer); } public GameEndView getGameEndView(UUID playerId, Match match) {