9
9
"testing"
10
10
"time"
11
11
12
+ "github.com/go-kit/kit/log"
12
13
"github.com/pkg/errors"
13
14
"github.com/prometheus/client_golang/prometheus"
14
15
"github.com/prometheus/common/route"
@@ -22,7 +23,6 @@ import (
22
23
"github.com/weaveworks/common/user"
23
24
24
25
"github.com/cortexproject/cortex/pkg/chunk"
25
- util_log "github.com/cortexproject/cortex/pkg/util/log"
26
26
"github.com/cortexproject/cortex/pkg/util/validation"
27
27
)
28
28
@@ -130,7 +130,7 @@ func TestApiStatusCodes(t *testing.T) {
130
130
131
131
func createPrometheusAPI (q storage.SampleAndChunkQueryable ) * route.Router {
132
132
engine := promql .NewEngine (promql.EngineOpts {
133
- Logger : util_log . Logger ,
133
+ Logger : log . NewNopLogger () ,
134
134
Reg : nil ,
135
135
ActiveQueryTracker : nil ,
136
136
MaxSamples : 100 ,
@@ -151,7 +151,7 @@ func createPrometheusAPI(q storage.SampleAndChunkQueryable) *route.Router {
151
151
nil , // Only needed for admin APIs.
152
152
"" , // This is for snapshots, which is disabled when admin APIs are disabled. Hence empty.
153
153
false , // Disable admin APIs.
154
- util_log . Logger ,
154
+ log . NewNopLogger () ,
155
155
func (context.Context ) v1.RulesRetriever { return & DummyRulesRetriever {} },
156
156
0 , 0 , 0 , // Remote read samples and concurrency limit.
157
157
regexp .MustCompile (".*" ),
0 commit comments