fix log space
This commit is contained in:
parent
7daacb215e
commit
e8409d7325
|
@ -279,9 +279,9 @@ func (b *Base) ForUpdateSql(query string) string {
|
||||||
func (b *Base) LogSQL(sql string, args []interface{}) {
|
func (b *Base) LogSQL(sql string, args []interface{}) {
|
||||||
if b.logger != nil && b.logger.IsShowSQL() {
|
if b.logger != nil && b.logger.IsShowSQL() {
|
||||||
if len(args) > 0 {
|
if len(args) > 0 {
|
||||||
b.logger.Info("[sql]", sql, args)
|
b.logger.Infof("[SQL] %v %v", sql, args)
|
||||||
} else {
|
} else {
|
||||||
b.logger.Info("[sql]", sql)
|
b.logger.Infof("[SQL] %v", sql)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue