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