Merge pull request #9 from hashicorp/b-remove-duplicate-hclog-import
hello: remove duplicate hclog import within driver.
This commit is contained in:
commit
5d6fcc4047
1 changed files with 2 additions and 3 deletions
|
@ -11,7 +11,6 @@ import (
|
||||||
|
|
||||||
"github.com/hashicorp/consul-template/signals"
|
"github.com/hashicorp/consul-template/signals"
|
||||||
"github.com/hashicorp/go-hclog"
|
"github.com/hashicorp/go-hclog"
|
||||||
log "github.com/hashicorp/go-hclog"
|
|
||||||
"github.com/hashicorp/nomad/drivers/shared/eventer"
|
"github.com/hashicorp/nomad/drivers/shared/eventer"
|
||||||
"github.com/hashicorp/nomad/drivers/shared/executor"
|
"github.com/hashicorp/nomad/drivers/shared/executor"
|
||||||
"github.com/hashicorp/nomad/plugins/base"
|
"github.com/hashicorp/nomad/plugins/base"
|
||||||
|
@ -181,11 +180,11 @@ type HelloDriverPlugin struct {
|
||||||
signalShutdown context.CancelFunc
|
signalShutdown context.CancelFunc
|
||||||
|
|
||||||
// logger will log to the Nomad agent
|
// logger will log to the Nomad agent
|
||||||
logger log.Logger
|
logger hclog.Logger
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewPlugin returns a new example driver plugin
|
// NewPlugin returns a new example driver plugin
|
||||||
func NewPlugin(logger log.Logger) drivers.DriverPlugin {
|
func NewPlugin(logger hclog.Logger) drivers.DriverPlugin {
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
logger = logger.Named(pluginName)
|
logger = logger.Named(pluginName)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue