fix: remove params from error log

v1.18.x
Barış Soner Uşaklı 4 years ago
parent b98561792a
commit 965671a97b

@ -141,8 +141,7 @@ async function onMessage(socket, payload) {
}); });
} }
} catch (err) { } catch (err) {
const event = JSON.stringify({ eventName, params }); winston.error(eventName + '\n' + (err.stack ? err.stack : err.message));
winston.error(event + '\n' + (err.stack ? err.stack : err.message));
callback({ message: err.message }); callback({ message: err.message });
} }
} }

Loading…
Cancel
Save