sqldblogger: log LevelInfo as debug
Some checks failed
/ push (push) Has been cancelled

This commit is contained in:
Tigor Hutasuhut 2024-05-13 11:19:54 +07:00
parent a150f6ee8b
commit c03955f284

View file

@ -17,10 +17,8 @@ func (sqlLogger) Log(ctx context.Context, level sqldblogger.Level, msg string, d
msg = strings.TrimSpace(msg)
switch level {
case sqldblogger.LevelDebug, sqldblogger.LevelTrace:
case sqldblogger.LevelDebug, sqldblogger.LevelTrace, sqldblogger.LevelInfo:
lvl = slog.LevelDebug
case sqldblogger.LevelInfo:
lvl = slog.LevelInfo
case sqldblogger.LevelError:
lvl = slog.LevelError
}