From 8c040e762e34e413d8552e307273a620a6f90663 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 10 Oct 2020 17:29:15 -0600 Subject: [PATCH] Update log levels --- src/main.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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