Code Review
/
src
/
xds
/
xds-agent.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added prints on startup.
[src/xds/xds-agent.git]
/
lib
/
xdsserver
/
server.go
diff --git
a/lib/xdsserver/server.go
b/lib/xdsserver/server.go
index
f0777e3
..
67b3e9a
100644
(file)
--- a/
lib/xdsserver/server.go
+++ b/
lib/xdsserver/server.go
@@
-1,6
+1,7
@@
package xdsserver
import (
package xdsserver
import (
+ "fmt"
"net/http"
"github.com/Sirupsen/logrus"
"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() {
// 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)
}()
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:
// Wait for stop, restart or error signals
select {
case <-s.stop: