diff --git a/internal/commands/start.go b/internal/commands/start.go index 8e68ecc9a..dd6a53d76 100644 --- a/internal/commands/start.go +++ b/internal/commands/start.go @@ -106,8 +106,6 @@ func startAction(ctx *cli.Context) error { } } - log.Infof("starting web server at %s:%d", conf.HttpServerHost(), conf.HttpServerPort()) - if conf.ReadOnly() { log.Infof("read-only mode enabled") } diff --git a/internal/server/server.go b/internal/server/server.go index 083055004..f443393f3 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -40,6 +40,8 @@ func Start(ctx context.Context, conf *config.Config) { } go func() { + log.Infof("starting web server at %s", server.Addr) + if err := server.ListenAndServe(); err != nil { if err == http.ErrServerClosed { log.Info("web server shutdown complete")