Skip to content

Commit

Permalink
Do not send userId to registry when ODO_DEBUG_TELEMETRY_FILE is set
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy committed Aug 18, 2022
1 parent 0e71623 commit ef4390d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/segment/integrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func getTelemetryForDevfileRegistry() (registryLibrary.TelemetryData, error) {
return td, nil
}

if GetDebugTelemetryFile() != "" {
return td, nil
}

// if there is an error, tag will be undetermined
tag, _ := locale.Detect()
td.Locale = tag.String()
Expand Down

0 comments on commit ef4390d

Please sign in to comment.