remove nil logger

This commit is contained in:
Alex Dadgar
2018-12-19 15:26:37 -08:00
parent 8131eceb12
commit ffadab1b20
4 changed files with 20 additions and 9 deletions

View File

@@ -19,10 +19,9 @@ type PluginDriver struct {
logger hclog.Logger
}
func NewDriverPlugin(d DriverPlugin, logger hclog.Logger) plugin.GRPCPlugin {
func NewDriverPlugin(d DriverPlugin) plugin.GRPCPlugin {
return &PluginDriver{
impl: d,
logger: logger.Named("driver_plugin"),
impl: d,
}
}
@@ -42,7 +41,6 @@ func (p *PluginDriver) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker
Client: baseproto.NewBasePluginClient(c),
},
client: proto.NewDriverClient(c),
logger: p.logger,
doneCtx: ctx,
}, nil
}