2
0

Added log adapter for logrus

Also changed standard logger interface to take a map instead of varargs for
extra data.
This commit is contained in:
Jack Christensen
2017-04-29 21:28:38 -05:00
parent 855b735eae
commit 280bce7078
13 changed files with 108 additions and 52 deletions
+1 -1
View File
@@ -179,7 +179,7 @@ func BenchmarkSelectWithoutLogging(b *testing.B) {
type discardLogger struct{}
func (dl discardLogger) Log(level pgx.LogLevel, msg string, ctx ...interface{}) {}
func (dl discardLogger) Log(level pgx.LogLevel, msg string, data map[string]interface{}) {}
func BenchmarkSelectWithLoggingTraceDiscard(b *testing.B) {
conn := mustConnect(b, *defaultConnConfig)