Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Dec 16, 2024
1 parent c022f1b commit e02d00f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,16 +378,11 @@ func UsageMetrics(command *cobra.Command, wg *sync.WaitGroup) {
hash := sha256.Sum256([]byte(fmt.Sprintf("%s%s", usr.Username, usr.Uid)))
userID := base64.StdEncoding.EncodeToString(hash[:])

network := Flags.Network
if network == "" {
network = config.EmulatorNetwork.Name
}

_ = client.Track(userID, "cli-command", &mixpanel.Event{
IP: "0", // do not track IPs
Properties: map[string]any{
"command": command.CommandPath(),
"network": network,
"network": Flags.Network,
"version": build.Semver(),
"os": runtime.GOOS,
},
Expand Down

0 comments on commit e02d00f

Please sign in to comment.