diff --git a/integration/token/common/sdk/fall/sdk.go b/integration/token/common/sdk/fall/sdk.go index 32692e5c2..c1471eb42 100644 --- a/integration/token/common/sdk/fall/sdk.go +++ b/integration/token/common/sdk/fall/sdk.go @@ -41,7 +41,7 @@ func NewFrom(sdk dig2.SDK) *SDK { func (p *SDK) Install() error { err := errors.Join( - p.Container().Provide(fabric.NewDriver, dig.Group("network-drivers")), + p.Container().Provide(fabric.NewGenericDriver, dig.Group("network-drivers")), p.Container().Provide(fabtoken.NewDriver, dig.Group("token-drivers")), p.Container().Provide(dlog.NewDriver, dig.Group("token-drivers")), ) diff --git a/token/sdk/dig/sdk.go b/token/sdk/dig/sdk.go index 9113f2c45..df4c3f07c 100644 --- a/token/sdk/dig/sdk.go +++ b/token/sdk/dig/sdk.go @@ -239,6 +239,7 @@ func registerNetworkDrivers(in struct { NetworkProvider *network.Provider Drivers []driver3.Driver `group:"network-drivers"` }) { + logger.Debugf("registering [%d] network drivers", len(in.Drivers)) for _, d := range in.Drivers { in.NetworkProvider.RegisterDriver(d) } diff --git a/token/services/network/network.go b/token/services/network/network.go index 7f26cfbd3..2c25e590d 100644 --- a/token/services/network/network.go +++ b/token/services/network/network.go @@ -472,7 +472,7 @@ func (np *Provider) newNetwork(network string, channel string) (*Network, error) logger.Debugf("new network [%s:%s]", network, channel) return &Network{n: nw}, nil } - return nil, errors.Errorf("no network driver found for [%s:%s], errs [%v]", network, channel, errs) + return nil, errors.Errorf("no network driver found for [%s:%s] among [%d] available, errs [%v]", network, channel, len(np.drivers), errs) } func (np *Provider) Normalize(opt *token.ServiceOptions) (*token.ServiceOptions, error) {