From b366464ee6d146b8b8f0fd4d0135c18d77552b76 Mon Sep 17 00:00:00 2001 From: Amateur Audio Dude <168192910+AmateurAudioDude@users.noreply.github.com> Date: Tue, 5 Nov 2024 23:38:29 +1100 Subject: [PATCH] Debug only for /text --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index 4cf6414..c5b86d9 100644 --- a/server/index.js +++ b/server/index.js @@ -353,7 +353,7 @@ app.use('/', endpoints); function antispamProtection(message, clientIp, ws, userCommands, lastWarn, userCommandHistory, lengthCommands, endpointName) { const command = message.toString(); const now = Date.now(); - logDebug(`Command received from \x1b[90m${clientIp}\x1b[0m: ${command}`); + if (endpointName === 'text') logDebug(`Command received from \x1b[90m${clientIp}\x1b[0m: ${command}`); // Initialize user command history if not present if (!userCommandHistory[clientIp]) {