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
1 changed files with 0 additions and 2 deletions

View File

@ -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') {