Skip to content

Commit

Permalink
DO NOT MERGE use log tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-zorn committed Aug 22, 2024
1 parent 6ea6649 commit a83f129
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"path/filepath"
"strings"

"github.com/google/uuid"
"github.com/spf13/cobra"
"github.com/spf13/viper"

Expand Down Expand Up @@ -223,12 +222,10 @@ func Execute(version string) {
ResourcesClient: resources.NewClient(version),
}
configService := config.NewService(resources.NewClient(version))
trackerFn := analytics.ClientFn{
ID: uuid.New().String(),
}
trackerFn := analytics.LogClientFn{}
rootCmd, err := NewRootCommand(
configService,
trackerFn.Tracker(version),
trackerFn.Tracker(),
clients,
version,
true,
Expand Down Expand Up @@ -266,7 +263,7 @@ See each command's help for details on how to use the generated script.`, rootCm
outcome = analytics.SUCCESS
}

analyticsClient := trackerFn.Tracker(version)(
analyticsClient := trackerFn.Tracker()(
viper.GetString(cliflags.AccessTokenFlag),
viper.GetString(cliflags.BaseURIFlag),
viper.GetBool(cliflags.AnalyticsOptOut),
Expand Down

0 comments on commit a83f129

Please sign in to comment.