containerd: Do not fail on plugin failure

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure
2017-06-20 10:25:09 -07:00
parent b7f37e778c
commit f8d3cfbc60
2 changed files with 5 additions and 4 deletions

View File

@@ -83,7 +83,8 @@ func New(ctx context.Context, config *Config) (*Server, error) {
}
instance, err := p.Init(initContext)
if err != nil {
return nil, err
log.G(ctx).WithError(err).Warnf("failed to load plugin %s", id)
continue
}
initialized[p.Type] = append(initialized[p.Type], instance)
// check for grpc services that should be registered with the server