浏览代码

More clear log

xormplus 8 年之前
父节点
当前提交
3f6ac940e3
共有 1 个文件被更改,包括 1 次插入1 次删除
  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)
 		}