Skip to content

Commit d225ed2

Browse files
✨ improve logs from alpha command generate
1 parent 226f160 commit d225ed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/rescaffold/migrate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ package rescaffold
1616
import (
1717
"errors"
1818
"fmt"
19-
"log"
2019
"os"
2120
"os/exec"
2221
"strings"
2322

23+
log "github.com/sirupsen/logrus"
2424
"github.com/spf13/afero"
2525
"sigs.k8s.io/kubebuilder/v3/pkg/config"
2626
"sigs.k8s.io/kubebuilder/v3/pkg/config/store"
@@ -156,7 +156,7 @@ func migrateGrafanaPlugin(store store.Store, src, des string) error {
156156
// If the grafana plugin is not found, we don't need to migrate
157157
if err != nil {
158158
if errors.As(err, &config.PluginKeyNotFoundError{}) {
159-
log.Printf("Grafana plugin is not found, skip the migration")
159+
log.Info("Grafana plugin is not found, skip the migration")
160160
return nil
161161
}
162162
return fmt.Errorf("failed to decode grafana plugin config %v", err)

0 commit comments

Comments
 (0)