mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	fix install submit crash caused by xorm log (#1119)
This commit is contained in:
		@@ -239,9 +239,8 @@ func NewTestEngine(x *xorm.Engine) (err error) {
 | 
			
		||||
		return fmt.Errorf("Connect to database: %v", err)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	setting.NewXORMLogService(false)
 | 
			
		||||
 | 
			
		||||
	x.SetMapper(core.GonicMapper{})
 | 
			
		||||
	x.SetLogger(log.XORMLogger)
 | 
			
		||||
	return x.StoreEngine("InnoDB").Sync2(tables...)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user