mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
adding version under Fn ascii on server launch
This commit is contained in:
@@ -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{
|
||||||
|
|||||||
Reference in New Issue
Block a user