Code Review
/
src
/
xds
/
xds-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix syncthing binary path detection.
[src/xds/xds-server.git]
/
lib
/
webserver
/
server.go
diff --git
a/lib/webserver/server.go
b/lib/webserver/server.go
index
8639b66
..
a2fdf6f
100644
(file)
--- 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() {
// 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)
}()
serveError <- http.ListenAndServe(":"+s.cfg.FileConf.HTTPPort, s.router)
}()