From 0a4b1fbb0e759c96661596f651a7e0f21af2307e Mon Sep 17 00:00:00 2001 From: Jizhong Jiang Date: Mon, 19 Nov 2018 20:44:27 +0800 Subject: [PATCH] Fix log format --- pkg/source/source.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/source/source.go b/pkg/source/source.go index faae6e97da..d767143bd9 100644 --- a/pkg/source/source.go +++ b/pkg/source/source.go @@ -86,8 +86,9 @@ func (ks *Kind) Start(handler handler.EventHandler, queue workqueue.RateLimiting i, err := ks.cache.GetInformer(ks.Type) if err != nil { if kindMatchErr, ok := err.(*meta.NoKindMatchError); ok { - log.Error(err, "if %s is a CRD, should install it before calling Start", - kindMatchErr.GroupKind) + log.Error(err, + fmt.Sprintf("if %s is a CRD, should install it before calling Start", + kindMatchErr.GroupKind)) } return err }