1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00

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

Fix #24861
This commit is contained in:
wxiaoguang 2023-06-12 18:52:49 +08:00 committed by GitHub
parent 3318001880
commit eaf551b3c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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")