catch and log
This commit is contained in:
parent
2c12884247
commit
c38854d24f
1 changed files with 3 additions and 3 deletions
|
|
@ -446,9 +446,8 @@ module.exports = (
|
|||
pingIntervalID = null
|
||||
}
|
||||
|
||||
socket.emit('shockping')
|
||||
|
||||
pingIntervalID = setInterval(() => {
|
||||
logger.info('emitting shockping event to ping socket')
|
||||
socket.emit('shockping')
|
||||
}, 3000)
|
||||
|
||||
|
|
@ -460,7 +459,8 @@ module.exports = (
|
|||
}
|
||||
})
|
||||
} catch (err) {
|
||||
logger.error('GUNRPC: ' + err.message)
|
||||
logger.error('Error inside shockping connect: ' + err.message)
|
||||
socket.emit('$error', err.message)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue