fix: log trace should not log sql values

This commit is contained in:
Steven Soroka 2022-04-22 15:47:53 -04:00
parent 395606ac7c
commit 04115485c0

View File

@ -132,7 +132,7 @@ func (p *processor) Execute(db *DB) *DB {
if stmt.SQL.Len() > 0 { if stmt.SQL.Len() > 0 {
db.Logger.Trace(stmt.Context, curTime, func() (string, int64) { db.Logger.Trace(stmt.Context, curTime, func() (string, int64) {
return db.Dialector.Explain(stmt.SQL.String(), stmt.Vars...), db.RowsAffected return stmt.SQL.String(), db.RowsAffected
}, db.Error) }, db.Error)
} }