From 121e73216d10997a0135e3fc95d54195cf14cc87 Mon Sep 17 00:00:00 2001 From: Engin Diri Date: Wed, 4 Oct 2023 10:07:57 +0200 Subject: [PATCH] feat: remove some print statements (#8) --- pkg/exoscale/exoscale.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/exoscale/exoscale.go b/pkg/exoscale/exoscale.go index 1bbf19e..423dc8f 100644 --- a/pkg/exoscale/exoscale.go +++ b/pkg/exoscale/exoscale.go @@ -85,7 +85,7 @@ func GetDevpodInstance(ctx context.Context, exoscaleProvider *ExoscaleProvider) var instanceID *string for _, instance := range instances { if strings.Contains(*instance.Name, exoscaleProvider.Config.MachineID) { - fmt.Printf("Found instance %v\n", *instance.Name) + exoscaleProvider.Log.Debugf("Found instance %v\n", *instance.Name) instanceID = instance.ID break } @@ -129,9 +129,8 @@ users: - %s sudo: [ "ALL=(ALL) NOPASSWD:ALL" ]`, publicKey) - fmt.Println(userData) data := base64.StdEncoding.EncodeToString([]byte(userData)) - fmt.Println(data) + exoscaleProvider.Log.Debugf("User data: %s", userData) size, _ := strconv.Atoi(exoscaleProvider.Config.DiskSizeGB) sizeGB := int64(size)