Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Don't shadow the log pkg.
  • Loading branch information
MrAlias committed May 27, 2023
1 parent 63661a3 commit 3efd242
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions exporters/zipkin/zipkin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (

ottest "go.opentelemetry.io/otel/internal/internaltest"

"github.com/go-logr/logr"
zkmodel "github.com/openzipkin/zipkin-go/model"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -373,9 +372,7 @@ func TestLogrFormatting(t *testing.T) {
args := []interface{}{"s", 1}

var buf bytes.Buffer
var log logr.Logger = buflogr.NewWithBuffer(&buf)

exp, err := New("", WithLogr(log))
exp, err := New("", WithLogr(buflogr.NewWithBuffer(&buf)))
require.NoError(t, err)
exp.logf(format, args...)

Expand Down

0 comments on commit 3efd242

Please sign in to comment.