Default log level to Info without hardcoding it in installer (#3041)

This commit is contained in:
Piotr Orzechowski 2017-12-01 08:41:27 +01:00 committed by Lunny Xiao
parent 9a8805d785
commit 57edc3155f
2 changed files with 10 additions and 9 deletions

View file

@ -310,7 +310,7 @@ func InstallPost(ctx *context.Context, form auth.InstallForm) {
cfg.Section("session").Key("PROVIDER").SetValue("file")
cfg.Section("log").Key("MODE").SetValue("file")
cfg.Section("log").Key("LEVEL").SetValue("Info")
cfg.Section("log").Key("LEVEL").SetValue(setting.LogLevel)
cfg.Section("log").Key("ROOT_PATH").SetValue(form.LogRootPath)
cfg.Section("security").Key("INSTALL_LOCK").SetValue("true")