diff --git a/server.go b/server.go index 37fadedd5..452494429 100644 --- a/server.go +++ b/server.go @@ -162,7 +162,12 @@ func (s *Server) Open() error { s.Holder.LogOutput = s.LogOutput // Serve HTTP. - go func() { http.Serve(ln, s.Handler) }() + go func() { + err := http.Serve(ln, s.Handler) + if err != nil { + s.logger().Printf("HTTP handler terminated with error: %s\n", err) + } + }() // Start background monitoring. s.wg.Add(3)