Skip to content

Commit

Permalink
Log the error details
Browse files Browse the repository at this point in the history
Log the error details

Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
  • Loading branch information
ywk253100 committed Jan 24, 2024
1 parent 94c7d4b commit 25d977e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/restore/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 25d977e

Please sign in to comment.