Skip to content

Commit 02b8789

Browse files
authored
Merge pull request kubernetes-sigs#10180 from ryjogo/main
🌱 Better verbose logging on override path
2 parents 293026a + b036df8 commit 02b8789

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/clusterctl/client/repository/overrides.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
"github.com/pkg/errors"
2929

3030
"sigs.k8s.io/cluster-api/cmd/clusterctl/client/config"
31+
logf "sigs.k8s.io/cluster-api/cmd/clusterctl/log"
3132
)
3233

3334
const (
@@ -107,7 +108,11 @@ func (o *overrides) Path() (string, error) {
107108
// getLocalOverride return local override file from the config folder, if it exists.
108109
// This is required for development purposes, but it can be used also in production as a workaround for problems on the official repositories.
109110
func getLocalOverride(info *newOverrideInput) ([]byte, error) {
111+
log := logf.Log
112+
110113
overridePath, err := newOverride(info).Path()
114+
log.V(5).Info("Potential override file", "SearchFile", overridePath, "Provider", info.provider.ManifestLabel(), "Version", info.version)
115+
111116
if err != nil {
112117
return nil, err
113118
}

0 commit comments

Comments
 (0)