From 38ffb33dbd9bcaba4b60fb9788c8667316dd486e Mon Sep 17 00:00:00 2001 From: Joao E Pereira Jr Date: Thu, 23 Feb 2023 17:34:13 -0300 Subject: [PATCH] Adding version to startup message Signed-off-by: Joao E Pereira Jr --- cmd/start.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/start.go b/cmd/start.go index d614a70e8..ee6f1b597 100644 --- a/cmd/start.go +++ b/cmd/start.go @@ -1,6 +1,7 @@ package cmd import ( + "fmt" "log" "strings" @@ -93,6 +94,8 @@ var startCmd = &cobra.Command{ logger := logger.NewLogger(l, Debug) rtLogger := logger.WithFields(zap.String("component", "start")) + rtLogger.Info(fmt.Sprintf("flagd version: %s (%s), built at: %s", Version, Commit, Date)) + if viper.GetString(syncProviderFlagName) != "" { rtLogger.Warn("DEPRECATED: The --sync-provider flag has been deprecated. " + "Docs: https://github.com/open-feature/flagd/blob/main/docs/configuration/configuration.md")