diff --git a/pkg/tsdb/prometheus/client/client_test.go b/pkg/tsdb/prometheus/client/client_test.go index 920baf81dfb8..1f9575716016 100644 --- a/pkg/tsdb/prometheus/client/client_test.go +++ b/pkg/tsdb/prometheus/client/client_test.go @@ -2,6 +2,7 @@ package client import ( "context" + "fmt" "io" "net/http" "testing" @@ -10,7 +11,6 @@ import ( "github.com/grafana/grafana-plugin-sdk-go/backend" "github.com/stretchr/testify/require" - "github.com/grafana/grafana/pkg/cmd/grafana-cli/logger" "github.com/grafana/grafana/pkg/tsdb/prometheus/models" ) @@ -44,7 +44,7 @@ func TestClient(t *testing.T) { defer func() { if res != nil && res.Body != nil { if err := res.Body.Close(); err != nil { - logger.Warn("Error", "err", err) + fmt.Println("Error", "err", err) } } }() @@ -68,7 +68,7 @@ func TestClient(t *testing.T) { defer func() { if res != nil && res.Body != nil { if err := res.Body.Close(); err != nil { - logger.Warn("Error", "err", err) + fmt.Println("Error", "err", err) } } }() @@ -98,7 +98,7 @@ func TestClient(t *testing.T) { defer func() { if res != nil && res.Body != nil { if err := res.Body.Close(); err != nil { - logger.Warn("Error", "err", err) + fmt.Println("Error", "err", err) } } }() @@ -125,7 +125,7 @@ func TestClient(t *testing.T) { defer func() { if res != nil && res.Body != nil { if err := res.Body.Close(); err != nil { - logger.Warn("Error", "err", err) + fmt.Println("Error", "err", err) } } }() diff --git a/pkg/tsdb/prometheus/healthcheck.go b/pkg/tsdb/prometheus/healthcheck.go index 873b8ac06fd4..4041d9c08e00 100644 --- a/pkg/tsdb/prometheus/healthcheck.go +++ b/pkg/tsdb/prometheus/healthcheck.go @@ -11,6 +11,7 @@ import ( "github.com/grafana/grafana-plugin-sdk-go/backend" "github.com/grafana/grafana-plugin-sdk-go/backend/log" + "github.com/grafana/grafana/pkg/tsdb/prometheus/kinds/dataquery" "github.com/grafana/grafana/pkg/tsdb/prometheus/models" ) diff --git a/pkg/tsdb/prometheus/querydata/framing_test.go b/pkg/tsdb/prometheus/querydata/framing_test.go index feadc406619f..0bf8ed7284c1 100644 --- a/pkg/tsdb/prometheus/querydata/framing_test.go +++ b/pkg/tsdb/prometheus/querydata/framing_test.go @@ -14,9 +14,10 @@ import ( "github.com/grafana/grafana-plugin-sdk-go/backend" "github.com/grafana/grafana-plugin-sdk-go/experimental" - "github.com/grafana/grafana/pkg/tsdb/prometheus/kinds/dataquery" "github.com/stretchr/testify/require" + "github.com/grafana/grafana/pkg/tsdb/prometheus/kinds/dataquery" + "github.com/grafana/grafana/pkg/tsdb/prometheus/models" )