fix: log trace should not log sql values
This commit is contained in:
parent
395606ac7c
commit
04115485c0
@ -132,7 +132,7 @@ func (p *processor) Execute(db *DB) *DB {
|
||||
|
||||
if stmt.SQL.Len() > 0 {
|
||||
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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user