Skip to content

Commit

Permalink
feat: Add version to startup message (#430)
Browse files Browse the repository at this point in the history
Signed-off-by: Joao E Pereira Jr <[email protected]>
  • Loading branch information
joaoepj authored Feb 27, 2023
1 parent 28a35f6 commit 8daf613
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

1 comment on commit 8daf613

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Go Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.30.

Benchmark suite Current: 8daf613 Previous: 04014e7 Ratio
BenchmarkResolveBooleanValue/test_targetingBoolFlag 16802 ns/op 4817 B/op 80 allocs/op 12543 ns/op 4817 B/op 80 allocs/op 1.34
BenchmarkResolveStringValue/test_targetingStringFlag 17067 ns/op 4841 B/op 82 allocs/op 12218 ns/op 4841 B/op 82 allocs/op 1.40
BenchmarkResolveIntValue/test_targetingNumberFlag 15488 ns/op 4825 B/op 80 allocs/op 11332 ns/op 4825 B/op 80 allocs/op 1.37
BenchmarkResolveObjectValue/test_targetingObjectFlag 21619 ns/op 6106 B/op 104 allocs/op 15701 ns/op 6106 B/op 104 allocs/op 1.38

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.