Browse Source

project layout - web: add server listening log message

extension
wpetit 2 years ago
parent
commit
e4293b7b8b
  1. 1
      cmd/scaffold/.project-layout/web/cmd/server/main.go.gotpl

1
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))
}

Loading…
Cancel
Save