Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ improve logs from alpha command generate #3556

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/rescaffold/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down
Loading