mirror of https://github.com/Chocobozzz/PeerTube
Log RTMP server error (address already in use)
parent
4f20856ed4
commit
c2b823826d
|
@ -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 New Issue