Skip to content

Commit

Permalink
Adding version to startup message
Browse files Browse the repository at this point in the history
Signed-off-by: Joao E Pereira Jr <[email protected]>
  • Loading branch information
joaoepj2 committed Feb 25, 2023
1 parent 6192ac8 commit a947bac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/start.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cmd

import (
"fmt"
"log"
"strings"

Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit a947bac

Please sign in to comment.