Server: added logs about fix command usage;

This commit is contained in:
Oleg Agafonov 2020-01-03 18:59:10 +04:00
parent 19060954ae
commit cc0679b6d3

View file

@ -1192,6 +1192,14 @@ public class GameController implements GameCallback {
if (state == null) { if (state == null) {
return ""; 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(); StringBuilder sb = new StringBuilder();
sb.append("<br/>Game State:<br/><font size=-2>"); sb.append("<br/>Game State:<br/><font size=-2>");
sb.append(state); sb.append(state);