diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-10-07 16:44:01 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-10-07 16:44:01 +0200 |
commit | 4de00f2ed9e3e122301f2fdb4eb71fc1c50509d0 (patch) | |
tree | a1470b174eb10c60922f7d5b0e5b87c921dc1c0b /server.js | |
parent | 6430fbe8a22a50b3389f44e84154d5f3b5d6572e (diff) | |
download | server-4de00f2ed9e3e122301f2fdb4eb71fc1c50509d0.tar.gz |
server: Remove join-events debugging log messages.
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -810,7 +810,6 @@ let join_clients = {}; function update_join_clients_deleted(game_id) { let list = join_clients[game_id]; if (list && list.length > 0) { - console.log("JOIN: UPDATE GAME DELETED", game_id, list.title_id, list.length); for (let res of list) { res.write("retry: 15000\n"); res.write("event: deleted\n"); @@ -823,7 +822,6 @@ function update_join_clients_game(game_id) { let list = join_clients[game_id]; if (list && list.length > 0) { let game = QUERY_GAME.get(game_id); - console.log("JOIN: UPDATE GAME STATUS", game_id, list.title_id, list.length) for (let res of list) { res.write("retry: 15000\n"); res.write("event: game\n"); @@ -837,7 +835,6 @@ function update_join_clients_players(game_id) { if (list && list.length > 0) { let players = QUERY_PLAYERS.all(game_id); let ready = RULES[list.title_id].ready(list.scenario, players); - console.log("JOIN: UPDATE PLAYERS", game_id, list.title_id, list.length, players.map(p => p.role + ": " + p.user_name), ready) for (let res of list) { res.write("retry: 15000\n"); res.write("event: players\n"); @@ -889,7 +886,6 @@ app.get('/join-events/:game_id', must_be_logged_in, function (req, res) { join_clients[game_id].push(res); res.on('close', () => { - console.log("JOIN: CLOSE CONNECTION TO", game_id); let list = join_clients[game_id]; let i = list.indexOf(res); if (i >= 0) |