Reworking configuration loading and overriding
This commit is contained in:
1 parent
a991cda233
commit
d1767144a8
9 files changed
+241
-112
No files matched your search
@@ -86,7 +86,7 @@ func SetEngine(engine *xorm.Engine, enableLog bool) (err error) {
|
||||
}
|
||||
|
||||
if enableLog {
|
||||
logPath := path.Join(setting.LogRootPath, "xorm.log")
|
||||
logPath := path.Join(setting.LogsPath, "xorm.log")
|
||||
os.MkdirAll(path.Dir(logPath), os.ModePerm)
|
||||
|
||||
f, err := os.Create(logPath)
|
||||
|
||||
Reference in new issue
Block a user