summaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index ab916c1b53..16177e889b 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -895,6 +895,16 @@ func newLogService() {
LogModes = strings.Split(Cfg.Section("log").Key("MODE").MustString("console"), ",")
LogConfigs = make([]string, len(LogModes))
+ useConsole := false
+ for _, mode := range LogModes {
+ if mode == "console" {
+ useConsole = true
+ }
+ }
+ if (!useConsole) {
+ log.DelLogger("console")
+ }
+
for i, mode := range LogModes {
mode = strings.TrimSpace(mode)