summaryrefslogtreecommitdiffstats
path: root/routers/install
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-06-13 14:35:37 -0400
committerGitHub <noreply@github.com>2023-06-13 20:35:37 +0200
commitfa28d0e706f643fb88aa7b9fdde864f9c172052b (patch)
tree14278b5bba32d21abb00298523e0489aa1de275e /routers/install
parent3ea544d89cebdf1c6874857281370497538ac335 (diff)
downloadgitea-fa28d0e706f643fb88aa7b9fdde864f9c172052b.tar.gz
gitea-fa28d0e706f643fb88aa7b9fdde864f9c172052b.zip
Do not overwrite the log mode when installing (#25203) (#25209)
Backport #25203 by @wxiaoguang Fix #24861 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'routers/install')
-rw-r--r--routers/install/install.go3
1 files changed, 1 insertions, 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")