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