Don't log ws messages (because they may have confidential info)

This commit is contained in:
Hippo 2020-05-14 22:36:41 +05:30
parent 51da40b8b0
commit 3e73b04725

View file

@ -134,7 +134,6 @@ app.get('/api', (req, res) => {
app.ws('/ws/fetch-medium', (ws, req) => { app.ws('/ws/fetch-medium', (ws, req) => {
ws.on('message', async(msg) => { ws.on('message', async(msg) => {
console.log(`We got: ${msg}`)
command = msg.split(' ') command = msg.split(' ')
if (command.length == 3 && command[0] == 'fetch') { 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) => { app.ws('/ws/push-ghost', (ws, req) => {
ws.on('message', async(msg) => { ws.on('message', async(msg) => {
console.log(`We got: ${msg}`)
command = msg.split(' ') command = msg.split(' ')
if (command.length == 3 && command[0] == 'push') { if (command.length == 3 && command[0] == 'push') {