summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-05-18 23:22:27 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-05-18 23:22:27 +0200
commitbb1c21ff73153633eb4b62f35aaaa610165a3862 (patch)
treedbcf60d787b13370e020c1d472477809cb13154c /lib
parent96fae3e86cc98b3cca4e96c002a92d98f05eb5b7 (diff)
Added prints on startup.
Diffstat (limited to 'lib')
-rw-r--r--lib/xdsserver/server.go4
1 files changed, 4 insertions, 0 deletions
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: