func setEngine(engine *xorm.Engine, useCache bool) { if useCache { engine.SetDefaultCacher(newCache()) } engine.Logger().ShowSQL(showTestSql) engine.Logger().SetLevel(core.LOG_DEBUG) }
func setEngine(engine *xorm.Engine, useCache bool) { if useCache { engine.SetDefaultCacher(newCache()) } engine.ShowSQL = showTestSql engine.ShowErr = showTestSql engine.ShowWarn = showTestSql engine.ShowDebug = showTestSql }