From 1522bb2fc6309d2aec3ff58705ea756bc97fb05f Mon Sep 17 00:00:00 2001 From: Joe Betz Date: Fri, 2 Aug 2019 23:47:24 -0700 Subject: [PATCH] Replace string concatination with trace fields Kubernetes-commit: 46a04d50af78e01d06a9879d62cc71fbe892076f --- tools/cache/reflector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cache/reflector.go b/tools/cache/reflector.go index b7e67c0e..4c14aaf7 100644 --- a/tools/cache/reflector.go +++ b/tools/cache/reflector.go @@ -166,7 +166,7 @@ func (r *Reflector) ListAndWatch(stopCh <-chan struct{}) error { options := metav1.ListOptions{ResourceVersion: "0"} 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) var list runtime.Object var err error