From fa28d0e706f643fb88aa7b9fdde864f9c172052b Mon Sep 17 00:00:00 2001 From: Giteabot Date: Tue, 13 Jun 2023 14:35:37 -0400 Subject: [PATCH] Do not overwrite the log mode when installing (#25203) (#25209) Backport #25203 by @wxiaoguang Fix #24861 Co-authored-by: wxiaoguang --- routers/install/install.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routers/install/install.go b/routers/install/install.go index 51ad6ec378..385954a515 100644 --- a/routers/install/install.go +++ b/routers/install/install.go @@ -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")