Browse Source

fix logfile name (#731)

tags/v1.21.12.1
DWE Lunny Xiao 8 years ago
parent
commit
8b87be63c5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/setting/setting.go

+ 1
- 1
modules/setting/setting.go View File

@@ -931,7 +931,7 @@ func newLogService() {
case "console": case "console":
LogConfigs[i] = fmt.Sprintf(`{"level":%s}`, level) LogConfigs[i] = fmt.Sprintf(`{"level":%s}`, level)
case "file": case "file":
logPath := sec.Key("FILE_NAME").MustString(path.Join(LogRootPath, "gogs.log"))
logPath := sec.Key("FILE_NAME").MustString(path.Join(LogRootPath, "gitea.log"))
if err = os.MkdirAll(path.Dir(logPath), os.ModePerm); err != nil { if err = os.MkdirAll(path.Dir(logPath), os.ModePerm); err != nil {
panic(err.Error()) panic(err.Error())
} }


Loading…
Cancel
Save