Log RTMP server error (address already in use)

pull/3581/head
Chocobozzz 2021-01-11 09:33:14 +01:00
parent 4f20856ed4
commit c2b823826d
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 5 additions and 1 deletions

View File

@ -283,7 +283,7 @@ async function startApplication () {
// Make server listening
server.listen(port, hostname, () => {
logger.info('Server listening on %s:%d', hostname, port)
logger.info('HTTP server listening on %s:%d', hostname, port)
logger.info('Web server: %s', WEBSERVER.URL)
Hooks.runAction('action:application.listening')

View File

@ -109,6 +109,10 @@ class LiveManager {
logger.info('Running RTMP server on port %d', config.rtmp.port)
this.rtmpServer = new NodeRtmpServer(config)
this.rtmpServer.tcpServer.on('error', err => {
logger.error('Cannot run RTMP server.', { err })
})
this.rtmpServer.run()
}