mirror of https://github.com/databricks/cli.git
use env var
This commit is contained in:
parent
69b38ece86
commit
7b61d7faef
|
@ -178,7 +178,7 @@ func uploadTelemetry(ctx context.Context, cmdStr string, startTime time.Time, ex
|
||||||
}
|
}
|
||||||
|
|
||||||
// Telemetry is disabled. We don't upload logs.
|
// Telemetry is disabled. We don't upload logs.
|
||||||
if os.Getenv(telemetry.DisableEnvVar) != "" {
|
if env.Get(ctx, telemetry.DisableEnvVar) != "" {
|
||||||
log.Debugf(ctx, "telemetry upload is disabled. Not uploading any logs.")
|
log.Debugf(ctx, "telemetry upload is disabled. Not uploading any logs.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue