Skip to content

Commit

Permalink
fix: Environment variables inconsistent #137
Browse files Browse the repository at this point in the history
  • Loading branch information
hengfeiyang committed Apr 26, 2022
1 parent 18bfbfa commit 57de263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/core/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (t *telemetry) initBaseInfo() {
}

func (t *telemetry) Instance() {
if zutils.GetEnv("ZINC_TELEMETRY", "enabled") == "disabled" {
if zutils.GetEnv("ZINC_TELEMETRY", "true") == "false" {
return
}

Expand All @@ -118,7 +118,7 @@ func (t *telemetry) Instance() {
}

func (t *telemetry) Event(event string, data map[string]interface{}) {
if zutils.GetEnv("ZINC_TELEMETRY", "enabled") == "disabled" {
if zutils.GetEnv("ZINC_TELEMETRY", "true") == "false" {
return
}

Expand Down

0 comments on commit 57de263

Please sign in to comment.