diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-28 01:53:06 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-28 01:53:06 -0400 |
commit | ab13a29cb530457328cf9d3a2511c2db1d5ccaca (patch) | |
tree | fae4cca0e4b24f81f7896b8f8dfab909c2e98bc8 /models/models.go | |
parent | ff690fd9760e0cfb5ae9e49aecb7a201f7ca8304 (diff) | |
download | gitea-ab13a29cb530457328cf9d3a2511c2db1d5ccaca.tar.gz gitea-ab13a29cb530457328cf9d3a2511c2db1d5ccaca.zip |
Fix #209
Diffstat (limited to 'models/models.go')
-rw-r--r-- | models/models.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/models/models.go b/models/models.go index c9fb0a4cbf..fa65ef30f6 100644 --- a/models/models.go +++ b/models/models.go @@ -112,8 +112,7 @@ func SetEngine() (err error) { // WARNNING: for serv command, MUST remove the output to os.stdout, // so use log file to instead print to stdout. - workDir, _ := setting.WorkDir() - logPath := workDir + "/log/xorm.log" + logPath := path.Join(setting.LogRootPath, "xorm.log") os.MkdirAll(path.Dir(logPath), os.ModePerm) f, err := os.Create(logPath) |