Log potential errors returned by http.ListenAndServe (#345)
This commit is contained in:
committed by
GitHub
parent
e83cca9338
commit
8d9eb1e79f
@@ -35,7 +35,13 @@ func (s *FileWriterReceiverService) SetupFileWriterReceiverService(callbacks Fil
|
|||||||
httpServer.HandleFunc("/", s.uploadHandler)
|
httpServer.HandleFunc("/", s.uploadHandler)
|
||||||
|
|
||||||
localListenerAddress := "127.0.0.1:" + strconv.Itoa(config.Config.GetPublicWebServerPort()+1)
|
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)
|
log.Traceln("Transcoder response listening on: " + localListenerAddress)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user