Skip to content

Commit 0be58f2

Browse files
authored
fix: printing gvkparser error message (#585)
The log.Info function doesn't understand format directives, so use key/value to print error message. Signed-off-by: Paul Gier <[email protected]>
1 parent 83ce6ca commit 0be58f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/cache/cluster.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ func (c *clusterCache) watchEvents(ctx context.Context, api kube.APIResourceInfo
711711
if !ok {
712712
return err
713713
}
714-
c.log.Info("warning loading openapi schema: %s", e)
714+
c.log.Info("warning: failed to create gvk parser", "error", e.Error())
715715
}
716716
if gvkParser != nil {
717717
c.gvkParser = gvkParser
@@ -825,7 +825,7 @@ func (c *clusterCache) sync() error {
825825
if !ok {
826826
return err
827827
}
828-
c.log.Info("warning loading openapi schema: %s", e.Error())
828+
c.log.Info("warning: failed to create gvk parser", "error", e.Error())
829829
}
830830

831831
if gvkParser != nil {

0 commit comments

Comments
 (0)