Browse Source

Do not overwrite the log mode when installing (#25203)

Fix #24861
tags/v1.21.0-rc0
wxiaoguang 1 year ago
parent
commit
eaf551b3c1
No account linked to committer's email address
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      routers/install/install.go

+ 1
- 2
routers/install/install.go View File

@@ -453,10 +453,9 @@ func SubmitInstall(ctx *context.Context) {

cfg.Section("session").Key("PROVIDER").SetValue("file")

cfg.Section("log").Key("MODE").SetValue("console")
cfg.Section("log").Key("MODE").MustString("console")
cfg.Section("log").Key("LEVEL").SetValue(setting.Log.Level.String())
cfg.Section("log").Key("ROOT_PATH").SetValue(form.LogRootPath)
cfg.Section("log").Key("ROUTER").SetValue("console")

cfg.Section("repository.pull-request").Key("DEFAULT_MERGE_STYLE").SetValue("merge")


Loading…
Cancel
Save