mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 22:01:44 +02:00
Fix #209
This commit is contained in:
1 parent
ff690fd976
commit
ab13a29cb5
13 files changed
+71
-59
No files matched your search
+1
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user