shipharbor / merry

:ocean::ocean::sailboat::ocean::ocean: - cute streaming API framework
MIT License
312 stars 21 forks source link

here are some snippets #14

Closed mafintosh closed 7 years ago

mafintosh commented 8 years ago
server.listen(PORT, function () {
  log.info({
    message: 'listening',
    port: server.address().port,
    env: process.env.NODE || 'undefined'
  })
})

process.once('uncaughtException', function (err) {
  log.error({message: 'error', message: err.message, stack: err.stack})
  console.error(err.stack)
  process.exit(1)
})
yoshuawuyts commented 7 years ago

done! - v3