Explorar o código

More clear log

xormplus %!s(int64=8) %!d(string=hai) anos
pai
achega
3f6ac940e3
Modificáronse 1 ficheiros con 1 adicións e 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{}) {
 func (engine *Engine) logSQL(sqlStr string, sqlArgs ...interface{}) {
 	if engine.showSQL && !engine.showExecTime {
 	if engine.showSQL && !engine.showExecTime {
 		if len(sqlArgs) > 0 {
 		if len(sqlArgs) > 0 {
-			engine.logger.Infof("[SQL] %v %v", sqlStr, sqlArgs)
+			engine.logger.Infof("[SQL] %v %#v", sqlStr, sqlArgs)
 		} else {
 		} else {
 			engine.logger.Infof("[SQL] %v", sqlStr)
 			engine.logger.Infof("[SQL] %v", sqlStr)
 		}
 		}