Ver Fonte

fix dependency broken because xorm's API changed

Lunny Xiao há 9 anos atrás
pai
commit
779b71eda4
1 ficheiros alterados com 1 adições e 6 exclusões
  1. 1 6
      models/models.go

+ 1 - 6
models/models.go

@@ -191,12 +191,7 @@ func SetEngine() (err error) {
 		return fmt.Errorf("Fail to create xorm.log: %v", err)
 	}
 	x.SetLogger(xorm.NewSimpleLogger(f))
-
-	x.ShowSQL = true
-	x.ShowInfo = true
-	x.ShowDebug = true
-	x.ShowErr = true
-	x.ShowWarn = true
+	x.ShowSQL(true)
 	return nil
 }