silence a few more routine websocket errors

pull/1/head
ansuz 2020-02-25 08:01:25 -05:00
parent 492e9496c8
commit ad08fe0c08
1 changed files with 1 additions and 1 deletions

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,