mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-27 20:08:49 +03:00
fix logfile name (#731)
This commit is contained in:
@ -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())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user