From 965671a97bc7da214183c170c8d31811e873f088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 18 Nov 2020 21:50:47 -0500 Subject: [PATCH] fix: remove params from error log --- src/socket.io/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }); } }