mirror of
1
Fork 0

bug fixed

This commit is contained in:
Lunny Xiao 2014-03-26 13:38:16 +08:00
parent 9750d5ed16
commit 87eb2c3665
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ gogs serv provide access auth for repositories`,
// for command: ./gogs update
func runUpdate(c *cli.Context) {
base.NewConfigContext()
models.LoadModelsConfig()
models.NewEngine()
//level := "0"
//os.MkdirAll("log", os.ModePerm)
//log.NewLogger(10000, "file", fmt.Sprintf(`{"level":%s,"filename":"%s"}`, level, "log/serv.log"))