Fix stdlib test logger

This commit is contained in:
Jack Christensen 2017-01-07 10:16:12 -06:00
parent 0131efd6c9
commit ecedf3d94a

View File

@ -335,17 +335,8 @@ type testLogger struct {
logs []testLog
}
func (l *testLogger) Debug(msg string, ctx ...interface{}) {
l.logs = append(l.logs, testLog{lvl: pgx.LogLevelDebug, msg: msg, ctx: ctx})
}
func (l *testLogger) Info(msg string, ctx ...interface{}) {
l.logs = append(l.logs, testLog{lvl: pgx.LogLevelInfo, msg: msg, ctx: ctx})
}
func (l *testLogger) Warn(msg string, ctx ...interface{}) {
l.logs = append(l.logs, testLog{lvl: pgx.LogLevelWarn, msg: msg, ctx: ctx})
}
func (l *testLogger) Error(msg string, ctx ...interface{}) {
l.logs = append(l.logs, testLog{lvl: pgx.LogLevelError, msg: msg, ctx: ctx})
func (l *testLogger) Log(lvl int, msg string, ctx ...interface{}) {
l.logs = append(l.logs, testLog{lvl: lvl, msg: msg, ctx: ctx})
}
func TestConnQueryLog(t *testing.T) {