Commit b151ad23 authored by ale's avatar ale

Log Serve() errors

parent 77fb2b0a
Pipeline #5609 passed with stages
in 4 minutes and 13 seconds
...@@ -38,6 +38,7 @@ func buildServer(servers ...genericServer) *Server { ...@@ -38,6 +38,7 @@ func buildServer(servers ...genericServer) *Server {
log.Printf("starting network service: %s", s.Name()) log.Printf("starting network service: %s", s.Name())
err := s.Serve() err := s.Serve()
if err != nil { if err != nil {
log.Printf("%s: error: %v", s.Name(), err)
werr := fmt.Errorf("%s: %v", s.Name(), err) werr := fmt.Errorf("%s: %v", s.Name(), err)
select { select {
case ms.errCh <- werr: case ms.errCh <- werr:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment