Log the error details

Log the error details

Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
This commit is contained in:
Wenkai Yin(尹文开)
2024-01-24 12:43:59 +08:00
parent 94c7d4b6d4
commit 25d977e5bc

View File

@@ -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)