Update log levels

This commit is contained in:
Oliver-Akins 2020-10-10 17:29:15 -06:00
parent f30550669f
commit 8c040e762e

View file

@ -54,7 +54,7 @@ process.on('SIGINT', clean_up);
const io = sio.listen(WSS_PORT); const io = sio.listen(WSS_PORT);
io.on(`connection`, (socket: sio.Socket) => { io.on(`connection`, (socket: sio.Socket) => {
log.silly(`Client connected with id ${socket.id}`); log.info(`Client connected with id ${socket.id}`);
// Game Management // Game Management
socket.on(`HostGame`, (data: HostGame) => HostGame(io, socket, data)); socket.on(`HostGame`, (data: HostGame) => HostGame(io, socket, data));
@ -87,9 +87,11 @@ io.on(`connection`, (socket: sio.Socket) => {
}); });
io.on(`reconnect_attempt`, (socket: sio.Socket) => { io.on(`reconnect_attempt`, (socket: sio.Socket) => {
console.log(`Client attempting to reconnect`) log.info(`Client attempting to reconnect`)
}); });
io.on(`disconnect`, (socket: sio.Socket) => { io.on(`disconnect`, (socket: sio.Socket) => {
console.log(`Client disconnected`) log.info(`Client disconnected`)
}); });
log.info(`Server started on port ${WSS_PORT}`);