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

Fix #24861
This commit is contained in:
wxiaoguang authored and GitHub committed 2023-06-12 10:52:49 +00:00
1 parent 3318001880
commit eaf551b3c1
1 file changed
+1 -2
+1 -2
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")