Disable version check for devs (#522)

This commit is contained in:
Igor Gov
2021-12-09 12:11:36 +02:00
committed by GitHub
parent 1ef3778051
commit 005f000ef6
3 changed files with 8 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ func ReportAPICalls(apiProvider *apiserver.Provider) {
}
func shouldRunTelemetry() bool {
if _, present := os.LookupEnv("MIZU_DISABLE_TELEMTRY"); present {
if _, present := os.LookupEnv(mizu.DEVENVVAR); present {
return false
}
if !config.Config.Telemetry {