This commit is contained in:
Shreyas Goenka 2025-02-27 12:58:43 +01:00
parent da0e08d72c
commit bddbc5dc87
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ func main() {
// of [root.Execute] ensures that the telemetry upload process is not spawned
// infinitely in a recursive manner.
if len(os.Args) == 3 && os.Args[1] == "telemetry" && os.Args[2] == "upload" {
// Suppress non-error logs from the SDK.
// Suppress non-error logs from the SDK. This ensures that INFO / WARN logs
// from the SDK are not printed to stdout / stderr.
logger.DefaultLogger = &logger.SimpleLogger{
Level: logger.LevelError,
}