From 14cabc2e61fd0fa5902ecffe3b82939eafd1416f Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 24 Nov 2021 07:22:19 -0600 Subject: [PATCH] Don't use debug log level for conn/disconnect --- scripts/server/event.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/server/event.js b/scripts/server/event.js index 77fe14ab..cd9ced1b 100644 --- a/scripts/server/event.js +++ b/scripts/server/event.js @@ -41,7 +41,7 @@ function addAllEventHandlers() { // =========================================================================== function onPlayerConnect(event, ipAddress, port) { - logToConsole(LOG_DEBUG, `[VRR.Event] Client connecting (IP: ${ipAddress})`); + logToConsole(LOG_INFO, `[VRR.Event] Client connecting (IP: ${ipAddress})`); //if(isIpAddressBanned(ipAddress)) { // messagePlayerError(client, "You are banned from this server!"); // return false; @@ -51,7 +51,7 @@ function onPlayerConnect(event, ipAddress, port) { // =========================================================================== function onPlayerJoin(event, client) { - logToConsole(LOG_DEBUG, `[VRR.Event] Client ${client.name}[${client.index}] joining from ${client.ip}`); + logToConsole(LOG_INFO, `[VRR.Event] Client ${client.name}[${client.index}] joining from ${client.ip}`); if(isFadeCameraSupported()) { fadeCamera(client, true, 1.0); @@ -77,7 +77,7 @@ function onElementStreamIn(event, element, client) { // =========================================================================== function onPlayerQuit(event, client, quitReasonId) { - logToConsole(LOG_DEBUG, `👋 Client ${getPlayerDisplayForConsole(client)} disconnected (${disconnectReasons[quitReasonId]}[${quitReasonId}])`); + logToConsole(LOG_INFO, `👋 Client ${getPlayerDisplayForConsole(client)} disconnected (${disconnectReasons[quitReasonId]}[${quitReasonId}])`); updateConnectionLogOnQuit(client, quitReasonId); if(isPlayerLoggedIn(client)) { messagePlayerNormal(null, `👋 ${getPlayerName(client)} has left the server (${disconnectReasons[quitReasonId]})`, getColourByName("softYellow"));