2
0

Add log adapters for testing and log15

Make LogLevel a type for Stringer interface.
This commit is contained in:
Jack Christensen
2017-04-29 20:33:52 -05:00
parent 353ca7c5c7
commit 855b735eae
8 changed files with 103 additions and 30 deletions
+1 -1
View File
@@ -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)