diff --git a/src/socket.io/index.js b/src/socket.io/index.js index f4e802c711..b2423541a6 100644 --- a/src/socket.io/index.js +++ b/src/socket.io/index.js @@ -141,8 +141,7 @@ async function onMessage(socket, payload) { }); } } catch (err) { - const event = JSON.stringify({ eventName, params }); - winston.error(event + '\n' + (err.stack ? err.stack : err.message)); + winston.error(eventName + '\n' + (err.stack ? err.stack : err.message)); callback({ message: err.message }); } }