X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=lib%2Fxdsserver%2Fserver.go;h=67b3e9a08db4ddeb1a2510749b781baaa8cf9844;hb=bb1c21ff73153633eb4b62f35aaaa610165a3862;hp=f0777e3d10b4b227d1a24a70ab8f65e670ea178a;hpb=96fae3e86cc98b3cca4e96c002a92d98f05eb5b7;p=src%2Fxds%2Fxds-agent.git diff --git a/lib/xdsserver/server.go b/lib/xdsserver/server.go index f0777e3..67b3e9a 100644 --- a/lib/xdsserver/server.go +++ b/lib/xdsserver/server.go @@ -1,6 +1,7 @@ package xdsserver import ( + "fmt" "net/http" "github.com/Sirupsen/logrus" @@ -91,9 +92,12 @@ func (s *ServerService) Serve() error { // Serve in the background serveError := make(chan error, 1) go func() { + fmt.Printf("Web Server running on localhost:%s ...\n", s.cfg.HTTPPort) serveError <- http.ListenAndServe(":"+s.cfg.HTTPPort, s.router) }() + fmt.Printf("XDS agent running...\n") + // Wait for stop, restart or error signals select { case <-s.stop: