|
@ -4,7 +4,7 @@ import ( |
|
|
"context" |
|
|
"context" |
|
|
"errors" |
|
|
"errors" |
|
|
"fmt" |
|
|
"fmt" |
|
|
"io/ioutil" |
|
|
"io" |
|
|
"testing" |
|
|
"testing" |
|
|
"time" |
|
|
"time" |
|
|
|
|
|
|
|
@ -118,7 +118,7 @@ func fakeSugarFields() []interface{} { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func NewLogger() log.Logger { |
|
|
func NewLogger() log.Logger { |
|
|
return log.New(log.WithWriter(ioutil.Discard)) |
|
|
return log.New(log.WithWriter(io.Discard)) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func BenchmarkDisabledWithoutFields(b *testing.B) { |
|
|
func BenchmarkDisabledWithoutFields(b *testing.B) { |
|
|