Explorar el Código

More clear log

xormplus hace 8 años
padre
commit
3f6ac940e3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)
 		}