Browse Source

More clear log

xormplus 8 năm trước cách đây
mục cha
commit
3f6ac940e3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      engine.go

+ 1 - 1
engine.go

@@ -270,7 +270,7 @@ func (engine *Engine) Ping() error {
 func (engine *Engine) logSQL(sqlStr string, sqlArgs ...interface{}) {
 	if engine.showSQL && !engine.showExecTime {
 		if len(sqlArgs) > 0 {
-			engine.logger.Infof("[SQL] %v %v", sqlStr, sqlArgs)
+			engine.logger.Infof("[SQL] %v %#v", sqlStr, sqlArgs)
 		} else {
 			engine.logger.Infof("[SQL] %v", sqlStr)
 		}