stop spamming the log on failures with full objects

This commit is contained in:
David Eads 2019-11-27 17:14:55 -05:00
parent 15475b4321
commit 1ad7858792

View File

@ -158,7 +158,7 @@ func (i *Info) ObjectName() string {
// String returns the general purpose string representation
func (i *Info) String() string {
basicInfo := fmt.Sprintf("Name: %q, Namespace: %q\nObject: %+q", i.Name, i.Namespace, i.Object)
basicInfo := fmt.Sprintf("Name: %q, Namespace: %q", i.Name, i.Namespace)
if i.Mapping != nil {
mappingInfo := fmt.Sprintf("Resource: %q, GroupVersionKind: %q", i.Mapping.Resource.String(),
i.Mapping.GroupVersionKind.String())