From be910fdbe41ea4c6dd03d735ad58667c099bc4d6 Mon Sep 17 00:00:00 2001 From: Chad Arimura Date: Sat, 23 Sep 2017 13:15:00 -0700 Subject: [PATCH] adding version under Fn ascii on server launch --- api/server/server.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/api/server/server.go b/api/server/server.go index fdb38168a..7010b811a 100644 --- a/api/server/server.go +++ b/api/server/server.go @@ -19,6 +19,7 @@ import ( "github.com/fnproject/fn/api/logs" "github.com/fnproject/fn/api/models" "github.com/fnproject/fn/api/mqs" + "github.com/fnproject/fn/api/version" "github.com/gin-gonic/gin" "github.com/opentracing/opentracing-go" "github.com/opentracing/opentracing-go/ext" @@ -232,13 +233,14 @@ func (s *Server) startGears(ctx context.Context) { listen := fmt.Sprintf(":%d", viper.GetInt(EnvPort)) const runHeader = ` - ______ - / ____/___ - / /_ / __ \ - / __/ / / / / - /_/ /_/ /_/ -` + ______ + / ____/___ + / /_ / __ \ + / __/ / / / / + /_/ /_/ /_/` fmt.Println(runHeader) + fmt.Printf(" v%s\n\n", version.Version) + logrus.Infof("Serving Functions API on address `%s`", listen) server := http.Server{