From 4fef8f968d81f48bb8c5c029f4c848c4c356aad0 Mon Sep 17 00:00:00 2001 From: huyinhou Date: Tue, 19 Sep 2023 19:08:52 +0800 Subject: [PATCH] fix: formatting of log messages Signed-off-by: huyinhou --- pkg/cache/cluster.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cache/cluster.go b/pkg/cache/cluster.go index 36d3b45a9..a78e53856 100644 --- a/pkg/cache/cluster.go +++ b/pkg/cache/cluster.go @@ -709,7 +709,7 @@ func (c *clusterCache) watchEvents(ctx context.Context, api kube.APIResourceInfo if !ok { return err } - c.log.Info("warning loading openapi schema: %s", e) + c.log.Info(fmt.Sprintf("warning loading openapi schema: %s", e.Error())) } if gvkParser != nil { c.gvkParser = gvkParser @@ -823,7 +823,7 @@ func (c *clusterCache) sync() error { if !ok { return err } - c.log.Info("warning loading openapi schema: %s", e.Error()) + c.log.Info(fmt.Sprintf("warning loading openapi schema: %s", e.Error())) } if gvkParser != nil {