suppress some noisy errors

This commit is contained in:
ansuz
2020-03-26 17:11:43 -04:00
parent 5f2d7c8dcf
commit 5f69fc18d0
2 changed files with 3 additions and 2 deletions

View File

@@ -190,7 +190,7 @@ module.exports.create = function (config, cb) {
},
sessionClose: function (userId, reason) {
HK.closeNetfluxSession(Env, userId);
if (['BAD_MESSAGE', 'SOCKET_ERROR', 'SEND_MESSAGE_FAIL_2'].indexOf(reason) !== -1) {
if (['BAD_MESSAGE', 'SEND_MESSAGE_FAIL_2'].indexOf(reason) !== -1) {
if (reason && reason.code === 'ECONNRESET') { return; }
return void Log.error('SESSION_CLOSE_WITH_ERROR', {
userId: userId,