Skip to content

Commit

Permalink
log disconnection reason
Browse files Browse the repository at this point in the history
  • Loading branch information
lovasoa committed Jun 10, 2021
1 parent 81ca85a commit 24d0fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/sockets.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function handleSocketConnection(socket) {
var board = await boards[room];
board.users.delete(socket.id);
var userCount = board.users.size;
log("disconnection", { board: board.name, users: board.users.size });
log("disconnection", { board: board.name, users: board.users.size, reason });
gauge("connected." + board.name, userCount);
if (userCount === 0) {
board.save();
Expand Down

0 comments on commit 24d0fe8

Please sign in to comment.