Update log levels
This commit is contained in:
parent
f30550669f
commit
8c040e762e
1 changed files with 6 additions and 4 deletions
|
|
@ -54,7 +54,7 @@ process.on('SIGINT', clean_up);
|
|||
const io = sio.listen(WSS_PORT);
|
||||
|
||||
io.on(`connection`, (socket: sio.Socket) => {
|
||||
log.silly(`Client connected with id ${socket.id}`);
|
||||
log.info(`Client connected with id ${socket.id}`);
|
||||
|
||||
// Game Management
|
||||
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) => {
|
||||
console.log(`Client attempting to reconnect`)
|
||||
log.info(`Client attempting to reconnect`)
|
||||
});
|
||||
|
||||
io.on(`disconnect`, (socket: sio.Socket) => {
|
||||
console.log(`Client disconnected`)
|
||||
log.info(`Client disconnected`)
|
||||
});
|
||||
|
||||
log.info(`Server started on port ${WSS_PORT}`);
|
||||
Loading…
Add table
Add a link
Reference in a new issue