Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

serve http: fix: logging url on start

dougal0e203a754684
diff --git a/cmd/serve/http/http.go b/cmd/serve/http/http.go
index 92f1b02f2..0acc5149f 100644
--- a/cmd/serve/http/http.go
+++ b/cmd/serve/http/http.go
@@ -208,6 +208,7 @@ func newServer(ctx context.Context, f fs.Fs, opt *Options, vfsOpt *vfscommon.Opt
// Serve HTTP until the server is shutdown
func (s *HTTP) Serve() error {
s.server.Serve()
+ fs.Logf(s.f, "HTTP Server started on %s", s.server.URLs())
s.server.Wait()
return nil
}
diff --git a/lib/http/server.go b/lib/http/server.go
index 46531351d..25e11f269 100644
--- a/lib/http/server.go
+++ b/lib/http/server.go
@@ -523,8 +523,6 @@ func (s *Server) initTLS() error {
func (s *Server) Serve() {
s.wg.Add(len(s.instances))
for _, ii := range s.instances {
- // TODO: decide how/when to log listening url
- // log.Printf("listening on %s", ii.url)
go ii.serve(&s.wg)
}
// Install an atexit handler to shutdown gracefully