summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-28 01:53:06 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-28 01:53:06 -0400
commitab13a29cb530457328cf9d3a2511c2db1d5ccaca (patch)
treefae4cca0e4b24f81f7896b8f8dfab909c2e98bc8 /models/models.go
parentff690fd9760e0cfb5ae9e49aecb7a201f7ca8304 (diff)
downloadgitea-ab13a29cb530457328cf9d3a2511c2db1d5ccaca.tar.gz
gitea-ab13a29cb530457328cf9d3a2511c2db1d5ccaca.zip
Fix #209
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go3
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)