Skip to content

Commit 1ad7858

Browse files
committed
stop spamming the log on failures with full objects
1 parent 15475b4 commit 1ad7858

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/cli-runtime/pkg/resource

1 file changed

+1
-1
lines changed

staging/src/k8s.io/cli-runtime/pkg/resource/visitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (i *Info) ObjectName() string {
158158

159159
// String returns the general purpose string representation
160160
func (i *Info) String() string {
161-
basicInfo := fmt.Sprintf("Name: %q, Namespace: %q\nObject: %+q", i.Name, i.Namespace, i.Object)
161+
basicInfo := fmt.Sprintf("Name: %q, Namespace: %q", i.Name, i.Namespace)
162162
if i.Mapping != nil {
163163
mappingInfo := fmt.Sprintf("Resource: %q, GroupVersionKind: %q", i.Mapping.Resource.String(),
164164
i.Mapping.GroupVersionKind.String())

0 commit comments

Comments
 (0)