diff --git a/src/main.ts b/src/main.ts index eaf356e..c50edfb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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`) -}); \ No newline at end of file + log.info(`Client disconnected`) +}); + +log.info(`Server started on port ${WSS_PORT}`); \ No newline at end of file