silence a few more routine websocket errors

This commit is contained in:
ansuz 2020-02-25 08:01:25 -05:00
parent 492e9496c8
commit ad08fe0c08

View File

@ -23,7 +23,7 @@ module.exports.create = function (config) {
});
}
if (reason && reason === 'SOCKET_CLOSED') { return; }
if (['SOCKET_CLOSED', 'SOCKET_ERROR'].indexOf(reason)) { return; }
log.verbose('SESSION_CLOSE_ROUTINE', {
userId: userId,
reason: reason,