aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-05-18 23:17:04 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-05-18 23:19:43 +0200
commita52a4ddc7662b8a4d0b8a1fd7be88742d1379691 (patch)
tree8ebc560024f58489855eb2beac858183ad3e8e6d /lib
parent4f8e078afa1e8152789bf8009bcf6f794bda18cc (diff)
Added prints on startup
Diffstat (limited to 'lib')
-rw-r--r--lib/webserver/server.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/webserver/server.go b/lib/webserver/server.go
index 0905c77..774195c 100644
--- a/lib/webserver/server.go
+++ b/lib/webserver/server.go
@@ -1,6 +1,7 @@
package webserver
import (
+ "fmt"
"net/http"
"os"
@@ -113,6 +114,7 @@ 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.HTTPPort)
serveError <- http.ListenAndServe(":"+s.cfg.HTTPPort, s.router)
}()