mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-28 16:07:29 +00:00
Replace string concatination with trace fields
Kubernetes-commit: 46a04d50af78e01d06a9879d62cc71fbe892076f
This commit is contained in:
parent
10488e3b13
commit
1522bb2fc6
2
tools/cache/reflector.go
vendored
2
tools/cache/reflector.go
vendored
@ -166,7 +166,7 @@ func (r *Reflector) ListAndWatch(stopCh <-chan struct{}) error {
|
|||||||
options := metav1.ListOptions{ResourceVersion: "0"}
|
options := metav1.ListOptions{ResourceVersion: "0"}
|
||||||
|
|
||||||
if err := func() error {
|
if err := func() error {
|
||||||
initTrace := trace.New("Reflector " + r.name + " ListAndWatch")
|
initTrace := trace.New("Reflector ListAndWatch", trace.Field{"name", r.name})
|
||||||
defer initTrace.LogIfLong(10 * time.Second)
|
defer initTrace.LogIfLong(10 * time.Second)
|
||||||
var list runtime.Object
|
var list runtime.Object
|
||||||
var err error
|
var err error
|
||||||
|
Loading…
Reference in New Issue
Block a user