diff --git a/cmd/serve/s3/s3.go b/cmd/serve/s3/s3.go index 305b46dd7c70e..18dc67b647281 100644 --- a/cmd/serve/s3/s3.go +++ b/cmd/serve/s3/s3.go @@ -61,7 +61,7 @@ var Command = &cobra.Command{ } router := s.Router() s.Bind(router) - s.Serve() + s.serve() s.Wait() return nil }) diff --git a/cmd/serve/s3/server.go b/cmd/serve/s3/server.go index a273ea047a2c3..54e0be4e81586 100644 --- a/cmd/serve/s3/server.go +++ b/cmd/serve/s3/server.go @@ -70,3 +70,9 @@ func newServer(ctx context.Context, f fs.Fs, opt *Options) (s *Server, err error func (w *Server) Bind(router chi.Router) { router.Handle("/*", w.handler) } + +func (w *Server) serve() error { + w.Serve() + fs.Logf(w.f, "Starting s3 server on %s", w.URLs()) + return nil +}