Skip to content

Commit

Permalink
Better verbose logging on override path
Browse files Browse the repository at this point in the history
  • Loading branch information
ryjogo committed Feb 21, 2024
1 parent ae2e1e9 commit 596f59a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/clusterctl/client/repository/overrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/pkg/errors"

"sigs.k8s.io/cluster-api/cmd/clusterctl/client/config"
logf "sigs.k8s.io/cluster-api/cmd/clusterctl/log"
)

const (
Expand Down Expand Up @@ -107,7 +108,11 @@ func (o *overrides) Path() (string, error) {
// getLocalOverride return local override file from the config folder, if it exists.
// This is required for development purposes, but it can be used also in production as a workaround for problems on the official repositories.
func getLocalOverride(info *newOverrideInput) ([]byte, error) {
log := logf.Log

overridePath, err := newOverride(info).Path()
log.V(5).Info("Overrides", "SearchFile", overridePath, "Provider", info.provider.ManifestLabel(), "Version", info.version)

if err != nil {
return nil, err
}
Expand Down

0 comments on commit 596f59a

Please sign in to comment.