From 076b5fffe60a487d2c982ca9b629344e90f5afa5 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Mon, 5 Oct 2020 12:12:43 -0600 Subject: [PATCH] Update logger settings. --- src/main.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 9dfec6c..6b96629 100644 --- a/src/main.ts +++ b/src/main.ts @@ -18,9 +18,11 @@ import { ExecutiveConfirmation } from "./events/special/ExecutiveConfirmation"; import { InvestigateAffiliation } from "./events/special/InvestigateLoyalty/InvestigateAffiliation"; export var log: Logger = new Logger({ - displayFunctionName: true, + displayFunctionName: false, + displayLoggerName: false, displayFilePath: `hidden`, displayLogLevel: true, + minLevel: `silly`, name: `SecretHitler`, }); @@ -48,7 +50,7 @@ process.on('SIGINT', clean_up); const io = sio.listen(3000); io.on(`connection`, (socket: sio.Socket) => { - log.info(`Client connected`); + log.silly(`Client connected with id ${socket.id}`); // Game Management socket.on(`HostGame`, (data: HostGame) => HostGame(socket, data));