This commit is contained in:
Unknown 2014-05-28 01:53:06 -04:00
parent ff690fd976
commit ab13a29cb5
13 changed files with 71 additions and 59 deletions

View file

@ -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)