Reworking configuration loading and overriding

This commit is contained in:
Torkel Ödegaard
2015-04-09 12:16:59 +02:00
parent a991cda233
commit d1767144a8
9 changed files with 241 additions and 112 deletions
+1 -1
View File
@@ -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)