Add log adapters for testing and log15
Make LogLevel a type for Stringer interface.
This commit is contained in:
+1
-1
@@ -179,7 +179,7 @@ func BenchmarkSelectWithoutLogging(b *testing.B) {
|
||||
|
||||
type discardLogger struct{}
|
||||
|
||||
func (dl discardLogger) Log(level int, msg string, ctx ...interface{}) {}
|
||||
func (dl discardLogger) Log(level pgx.LogLevel, msg string, ctx ...interface{}) {}
|
||||
|
||||
func BenchmarkSelectWithLoggingTraceDiscard(b *testing.B) {
|
||||
conn := mustConnect(b, *defaultConnConfig)
|
||||
|
||||
Reference in New Issue
Block a user