From fd4bc53317736a45f827229ee5a985a1478dc2b1 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Mon, 23 Nov 2020 11:48:28 +0100 Subject: [PATCH] hello: remove duplicate hclog import within driver. --- hello/driver.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hello/driver.go b/hello/driver.go index 67f557d..f29100e 100644 --- a/hello/driver.go +++ b/hello/driver.go @@ -11,7 +11,6 @@ import ( "github.com/hashicorp/consul-template/signals" "github.com/hashicorp/go-hclog" - log "github.com/hashicorp/go-hclog" "github.com/hashicorp/nomad/drivers/shared/eventer" "github.com/hashicorp/nomad/drivers/shared/executor" "github.com/hashicorp/nomad/plugins/base" @@ -181,11 +180,11 @@ type HelloDriverPlugin struct { signalShutdown context.CancelFunc // logger will log to the Nomad agent - logger log.Logger + logger hclog.Logger } // 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()) logger = logger.Named(pluginName)