Skip to content

Commit

Permalink
fix: use logger instead of fmt.Printf()
Browse files Browse the repository at this point in the history
Use available logger instance, instead of writing directly to stdout with fmt.Printf()

Signed-off-by: Mike Frisch <mikef17@gmail.com>
  • Loading branch information
EmmEff authored and stevenhorsman committed Jan 20, 2025
1 parent 1314c9e commit 989c06a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cloud-providers/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 989c06a

Please sign in to comment.