From d225ed299d9ecfa010214a24ea75868d02327d40 Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Fri, 25 Aug 2023 14:25:12 +0100 Subject: [PATCH] :sparkles: improve logs from alpha command generate --- pkg/rescaffold/migrate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/rescaffold/migrate.go b/pkg/rescaffold/migrate.go index 770970a87f0..8f336f752f2 100644 --- a/pkg/rescaffold/migrate.go +++ b/pkg/rescaffold/migrate.go @@ -16,11 +16,11 @@ package rescaffold import ( "errors" "fmt" - "log" "os" "os/exec" "strings" + log "github.com/sirupsen/logrus" "github.com/spf13/afero" "sigs.k8s.io/kubebuilder/v3/pkg/config" "sigs.k8s.io/kubebuilder/v3/pkg/config/store" @@ -156,7 +156,7 @@ func migrateGrafanaPlugin(store store.Store, src, des string) error { // If the grafana plugin is not found, we don't need to migrate if err != nil { if errors.As(err, &config.PluginKeyNotFoundError{}) { - log.Printf("Grafana plugin is not found, skip the migration") + log.Info("Grafana plugin is not found, skip the migration") return nil } return fmt.Errorf("failed to decode grafana plugin config %v", err)