From cc0679b6d3ea7ade44896ebc201208380c896d44 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Fri, 3 Jan 2020 18:59:10 +0400 Subject: [PATCH] Server: added logs about fix command usage; --- .../src/main/java/mage/server/game/GameController.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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 7374ddb6a8..afb0b98aff 100644 --- a/Mage.Server/src/main/java/mage/server/game/GameController.java +++ b/Mage.Server/src/main/java/mage/server/game/GameController.java @@ -1192,6 +1192,14 @@ public class GameController implements GameCallback { if (state == null) { return ""; } + + logger.warn("FIX command was called for game " + game.getId() + " - players: " + + game.getPlayerList().stream() + .map(game::getPlayer) + .filter(Objects::nonNull) + .map(p -> p.getName() + (p.isInGame() ? " (play)" : " (out)")) + .collect(Collectors.joining(", "))); + StringBuilder sb = new StringBuilder(); sb.append("
Game State:
"); sb.append(state);