From 9d938dbc1191390386e4935d2261be33354ef5cf Mon Sep 17 00:00:00 2001 From: Mike Frisch Date: Thu, 16 Jan 2025 09:55:08 -0500 Subject: [PATCH] fix: use logger instead of fmt.Printf() Use available logger instance, instead of writing directly to stdout with fmt.Printf() Signed-off-by: Mike Frisch --- src/cloud-providers/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cloud-providers/util.go b/src/cloud-providers/util.go index e8b3f6309..550fe21a8 100644 --- a/src/cloud-providers/util.go +++ b/src/cloud-providers/util.go @@ -21,7 +21,7 @@ func VerifyCloudInstanceType(instanceType string, validInstanceTypes []string, d // If instanceType is empty, set instanceType to default. if instanceType == "" { instanceType = defaultInstanceType - fmt.Printf("Using default instance type (%q)\n", defaultInstanceType) + logger.Printf("Using default instance type (%q)", defaultInstanceType) return instanceType, nil }