MCPcopy
hub / github.com/grafana/dskit / createLogger

Function createLogger

middleware/grpc_cluster_test.go:280–284  ·  view source on GitHub ↗
(t *testing.T, buf *bytes.Buffer)

Source from the content-addressed store, hash-verified

278}
279
280func createLogger(t *testing.T, buf *bytes.Buffer) log.Logger {
281 var lvl dskitlog.Level
282 require.NoError(t, lvl.Set("warn"))
283 return dskitlog.NewGoKitWithWriter(dskitlog.LogfmtFormat, buf)
284}
285
286func createRequest(t *testing.T) *httpgrpc.HTTPRequest {
287 r, err := http.NewRequest("POST", "/i/am/calling/you", strings.NewReader("some body"))

Calls 1

SetMethod · 0.95

Tested by

no test coverage detected