Fix #209
This commit is contained in:
parent
ff690fd976
commit
ab13a29cb5
13 changed files with 71 additions and 59 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue