From 5756bd350d585660cce53a28dc66bfcf162ecca1 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Wed, 13 Sep 2017 15:42:09 +0200 Subject: Set install dir to /opt/AGL and move conf to $HOME/.xds-server Signed-off-by: Sebastien Douheret --- lib/webserver/server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/webserver') diff --git a/lib/webserver/server.go b/lib/webserver/server.go index 8639b66..a2fdf6f 100644 --- a/lib/webserver/server.go +++ b/lib/webserver/server.go @@ -116,7 +116,9 @@ func (s *Server) Serve() error { // Serve in the background serveError := make(chan error, 1) go func() { - fmt.Printf("Web Server running on localhost:%s ...\n", s.cfg.FileConf.HTTPPort) + msg := fmt.Sprintf("Web Server running on localhost:%s ...\n", s.cfg.FileConf.HTTPPort) + s.log.Infof(msg) + fmt.Printf(msg) serveError <- http.ListenAndServe(":"+s.cfg.FileConf.HTTPPort, s.router) }() -- cgit 1.2.3-korg