From 25d977e5bcd1d455adc1406bb27d048e0dd259bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wenkai=20Yin=28=E5=B0=B9=E6=96=87=E5=BC=80=29?= Date: Wed, 24 Jan 2024 12:43:59 +0800 Subject: [PATCH] Log the error details MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Log the error details Signed-off-by: Wenkai Yin(尹文开) --- pkg/restore/restore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/restore/restore.go b/pkg/restore/restore.go index f19e4c7f6e..264d24dda4 100644 --- a/pkg/restore/restore.go +++ b/pkg/restore/restore.go @@ -595,7 +595,7 @@ func (ctx *restoreContext) execute() (results.Result, results.Result) { gvr := schema.ParseGroupResource(informerResource.resource).WithVersion(version) _, _, err := ctx.discoveryHelper.ResourceFor(gvr) if err != nil { - ctx.log.Infof("failed to create informer for %s", gvr) + ctx.log.Infof("failed to create informer for %s: %v", gvr, err) continue } ctx.dynamicInformerFactory.factory.ForResource(gvr)