diff --git a/stdlib/sql_test.go b/stdlib/sql_test.go index 5a5f7049..546ec4fb 100644 --- a/stdlib/sql_test.go +++ b/stdlib/sql_test.go @@ -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) {