remove leaking logs

This commit is contained in:
Shreyas Goenka 2025-02-21 18:05:42 +01:00
parent ae8ebaa757
commit 68646a583d
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,3 @@
Telemetry logs uploaded successfully
Response:
{"errors":null,"numProtoSuccess":2}
2025/02/21 16:56:09 INFO Ignoring basic auth, because oauth-m2m is preferred sdk=true

View File

@ -10,6 +10,7 @@ import (
"github.com/databricks/cli/cmd"
"github.com/databricks/cli/cmd/root"
"github.com/databricks/cli/libs/telemetry"
"github.com/databricks/databricks-sdk-go/logger"
)
func main() {
@ -35,6 +36,11 @@ func main() {
errW = outW
}
// Suppress non-error logs from the SDK.
logger.DefaultLogger = &logger.SimpleLogger{
Level: logger.LevelError,
}
resp, err := telemetry.Upload()
if err != nil {
fmt.Fprintf(errW, "error: %s\n", err)