Feat: Log player joins in LobbyManager
This commit is contained in:
@@ -69,6 +69,15 @@ public class LobbyManager {
|
|||||||
lobby.addPlayerAndMaybeStart(
|
lobby.addPlayerAndMaybeStart(
|
||||||
username, maxPlayersPerLobby, AUTO_START_PLAYERS, DEFAULT_START_CHIPS);
|
username, maxPlayersPerLobby, AUTO_START_PLAYERS, DEFAULT_START_CHIPS);
|
||||||
if (result != AddResult.NOT_ADDED) {
|
if (result != AddResult.NOT_ADDED) {
|
||||||
|
LOGGER.info(
|
||||||
|
() ->
|
||||||
|
"User '"
|
||||||
|
+ username
|
||||||
|
+ "' joined lobby "
|
||||||
|
+ lobbyId.value()
|
||||||
|
+ " (result="
|
||||||
|
+ result
|
||||||
|
+ ")");
|
||||||
playerToLobby.put(username, lobbyId);
|
playerToLobby.put(username, lobbyId);
|
||||||
if (result == AddResult.ADDED_AND_STARTED) {
|
if (result == AddResult.ADDED_AND_STARTED) {
|
||||||
LOGGER.info(
|
LOGGER.info(
|
||||||
|
|||||||
Reference in New Issue
Block a user