From 3e73b047259e6523e0c70575c925d703d0dd3ca5 Mon Sep 17 00:00:00 2001 From: Hippo Date: Thu, 14 May 2020 22:36:41 +0530 Subject: [PATCH] Don't log ws messages (because they may have confidential info) --- server.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/server.js b/server.js index 11cb754..a40c29a 100644 --- a/server.js +++ b/server.js @@ -134,7 +134,6 @@ app.get('/api', (req, res) => { app.ws('/ws/fetch-medium', (ws, req) => { ws.on('message', async(msg) => { - console.log(`We got: ${msg}`) command = msg.split(' ') if (command.length == 3 && command[0] == 'fetch') { @@ -185,7 +184,6 @@ app.ws('/ws/fetch-medium', (ws, req) => { app.ws('/ws/push-ghost', (ws, req) => { ws.on('message', async(msg) => { - console.log(`We got: ${msg}`) command = msg.split(' ') if (command.length == 3 && command[0] == 'push') {