From 0e203a7546848bca4d2050fd2c5f7a87ab270eb9 Mon Sep 17 00:00:00 2001 From: dougal Date: Thu, 18 Sep 2025 12:09:37 +0100 Subject: [PATCH] serve http: fix: logging url on start --- cmd/serve/http/http.go | 1 + lib/http/server.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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