From b4eab0d2f491d0585f49f41c9a127dbb3899923f Mon Sep 17 00:00:00 2001 From: Yonle Date: Sun, 18 Feb 2024 19:40:56 +0700 Subject: [PATCH] bouncer: logger: log when user initialized first command Signed-off-by: Yonle --- bouncer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bouncer.js b/bouncer.js index 25fd78d..c632854 100644 --- a/bouncer.js +++ b/bouncer.js @@ -79,6 +79,7 @@ module.exports = (ws, req, onClose) => { } if (!ws.relays.size && !sessStarted) { + console.log(process.pid, `>>>`, `${ws.ip} executed ${data[1]} command for the first. Initializing session`); newsess(ws); sessStarted = true; } @@ -115,6 +116,7 @@ module.exports = (ws, req, onClose) => { } if (!ws.relays.size && !sessStarted) { + console.log(process.pid, `>>>`, `${ws.ip} executed ${data[1]} command for the first. Initializing session`); newsess(ws); sessStarted = true; }