use env var

This commit is contained in:
Shreyas Goenka 2025-03-06 10:56:51 +01:00
parent 69b38ece86
commit 7b61d7faef
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }