adding version under Fn ascii on server launch

This commit is contained in:
Chad Arimura
2017-09-23 13:15:00 -07:00
parent fff03d370f
commit be910fdbe4

View File

@@ -19,6 +19,7 @@ import (
"github.com/fnproject/fn/api/logs" "github.com/fnproject/fn/api/logs"
"github.com/fnproject/fn/api/models" "github.com/fnproject/fn/api/models"
"github.com/fnproject/fn/api/mqs" "github.com/fnproject/fn/api/mqs"
"github.com/fnproject/fn/api/version"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/opentracing/opentracing-go" "github.com/opentracing/opentracing-go"
"github.com/opentracing/opentracing-go/ext" "github.com/opentracing/opentracing-go/ext"
@@ -232,13 +233,14 @@ func (s *Server) startGears(ctx context.Context) {
listen := fmt.Sprintf(":%d", viper.GetInt(EnvPort)) listen := fmt.Sprintf(":%d", viper.GetInt(EnvPort))
const runHeader = ` const runHeader = `
______ ______
/ ____/___ / ____/___
/ /_ / __ \ / /_ / __ \
/ __/ / / / / / __/ / / / /
/_/ /_/ /_/ /_/ /_/ /_/`
`
fmt.Println(runHeader) fmt.Println(runHeader)
fmt.Printf(" v%s\n\n", version.Version)
logrus.Infof("Serving Functions API on address `%s`", listen) logrus.Infof("Serving Functions API on address `%s`", listen)
server := http.Server{ server := http.Server{