From e4293b7b8b9fb5b43ac76555c4f9f185e4f5784f Mon Sep 17 00:00:00 2001 From: William Petit Date: Wed, 12 Feb 2020 22:21:47 +0100 Subject: [PATCH] project layout - web: add server listening log message --- cmd/scaffold/.project-layout/web/cmd/server/main.go.gotpl | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/scaffold/.project-layout/web/cmd/server/main.go.gotpl b/cmd/scaffold/.project-layout/web/cmd/server/main.go.gotpl index f02ce60..b647809 100644 --- a/cmd/scaffold/.project-layout/web/cmd/server/main.go.gotpl +++ b/cmd/scaffold/.project-layout/web/cmd/server/main.go.gotpl @@ -105,6 +105,7 @@ func main() { log.Fatalf("%+v", errors.Wrap(err, "could not mount http routes")) } + log.Printf("listening on '%s'", conf.HTTP.Address) if err := http.ListenAndServe(conf.HTTP.Address, r); err != nil { log.Fatalf("%+v", errors.Wrapf(err, "could not listen on '%s'", conf.HTTP.Address)) }