mirror of
https://github.com/go-gitea/gitea
synced 2024-08-19 22:00:48 +02:00
Fix bug related to log
This commit is contained in:
parent
6a16866f4e
commit
db1fe3483e
@ -150,6 +150,7 @@ func newLogService() {
|
|||||||
Cfg.MustValue(modeSec, "CONN"))
|
Cfg.MustValue(modeSec, "CONN"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Info("%s %s", AppName, AppVer)
|
||||||
log.NewLogger(Cfg.MustInt64("log", "BUFFER_LEN", 10000), LogMode, LogConfig)
|
log.NewLogger(Cfg.MustInt64("log", "BUFFER_LEN", 10000), LogMode, LogConfig)
|
||||||
log.Info("Log Mode: %s(%s)", strings.Title(LogMode), levelName)
|
log.Info("Log Mode: %s(%s)", strings.Title(LogMode), levelName)
|
||||||
}
|
}
|
||||||
@ -292,8 +293,6 @@ func NewConfigContext() {
|
|||||||
if err = os.MkdirAll(RepoRootPath, os.ModePerm); err != nil {
|
if err = os.MkdirAll(RepoRootPath, os.ModePerm); err != nil {
|
||||||
qlog.Fatalf("Fail to create RepoRootPath(%s): %v\n", RepoRootPath, err)
|
qlog.Fatalf("Fail to create RepoRootPath(%s): %v\n", RepoRootPath, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Info("%s %s", AppName, AppVer)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewServices() {
|
func NewServices() {
|
||||||
|
@ -45,7 +45,7 @@ func newUpdateLogger(execDir string) {
|
|||||||
// for command: ./gogs update
|
// for command: ./gogs update
|
||||||
func runUpdate(c *cli.Context) {
|
func runUpdate(c *cli.Context) {
|
||||||
execDir, _ := base.ExecDir()
|
execDir, _ := base.ExecDir()
|
||||||
newLogger(execDir)
|
newUpdateLogger(execDir)
|
||||||
|
|
||||||
base.NewConfigContext()
|
base.NewConfigContext()
|
||||||
models.LoadModelsConfig()
|
models.LoadModelsConfig()
|
||||||
|
Loading…
Reference in New Issue
Block a user