Skip to content

Commit 435db31

Browse files
Avoid using %#v for errors when %T is more informative
`%#v` may have significant performance costs in frequently invoked code.
1 parent ecd43f1 commit 435db31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

staging/src/k8s.io/client-go/tools/cache/shared_informer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ func (p *processorListener) run() {
555555
case deleteNotification:
556556
p.handler.OnDelete(notification.oldObj)
557557
default:
558-
utilruntime.HandleError(fmt.Errorf("unrecognized notification: %#v", next))
558+
utilruntime.HandleError(fmt.Errorf("unrecognized notification: %T", next))
559559
}
560560
}
561561
// the only way to get here is if the p.nextCh is empty and closed

0 commit comments

Comments
 (0)