Log RTMP server error (address already in use)
This commit is contained in:
parent
4f20856ed4
commit
c2b823826d
2 changed files with 5 additions and 1 deletions
|
@ -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')
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue