mirror of
https://github.com/owncast/owncast.git
synced 2024-11-29 03:29:03 +03:00
Log potential errors returned by http.ListenAndServe (#345)
This commit is contained in:
parent
e83cca9338
commit
8d9eb1e79f
1 changed files with 7 additions and 1 deletions
|
@ -35,7 +35,13 @@ func (s *FileWriterReceiverService) SetupFileWriterReceiverService(callbacks Fil
|
|||
httpServer.HandleFunc("/", s.uploadHandler)
|
||||
|
||||
localListenerAddress := "127.0.0.1:" + strconv.Itoa(config.Config.GetPublicWebServerPort()+1)
|
||||
go http.ListenAndServe(localListenerAddress, httpServer)
|
||||
|
||||
go func() {
|
||||
if err := http.ListenAndServe(localListenerAddress, httpServer); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}()
|
||||
|
||||
log.Traceln("Transcoder response listening on: " + localListenerAddress)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue