Skip to content

Commit fa28d0e

Browse files
GiteaBotwxiaoguang
andauthored
Do not overwrite the log mode when installing (go-gitea#25203) (go-gitea#25209)
Backport go-gitea#25203 by @wxiaoguang Fix go-gitea#24861 Co-authored-by: wxiaoguang <[email protected]>
1 parent 3ea544d commit fa28d0e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

routers/install/install.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,9 @@ func SubmitInstall(ctx *context.Context) {
453453

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

456-
cfg.Section("log").Key("MODE").SetValue("console")
456+
cfg.Section("log").Key("MODE").MustString("console")
457457
cfg.Section("log").Key("LEVEL").SetValue(setting.Log.Level.String())
458458
cfg.Section("log").Key("ROOT_PATH").SetValue(form.LogRootPath)
459-
cfg.Section("log").Key("ROUTER").SetValue("console")
460459

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

0 commit comments

Comments
 (0)