diff options
Diffstat (limited to 'routers/install.go')
-rw-r--r-- | routers/install.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/routers/install.go b/routers/install.go index 45e22041..0a856934 100644 --- a/routers/install.go +++ b/routers/install.go @@ -335,7 +335,11 @@ func InstallPost(ctx *context.Context, f form.Install) { cfg.Section("session").Key("PROVIDER").SetValue("file") - cfg.Section("log").Key("MODE").SetValue("file") + mode := "file" + if f.EnableConsoleMode { + mode = "console, file" + } + cfg.Section("log").Key("MODE").SetValue(mode) cfg.Section("log").Key("LEVEL").SetValue("Info") cfg.Section("log").Key("ROOT_PATH").SetValue(f.LogRootPath) |