aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index fbb283a9da..dd06691dc3 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -1096,6 +1096,10 @@ func NewXORMLogService(disableConsole bool) {
}
log.XORMLogger.SetLevel(lvl)
}
+
+ if len(logConfigs) == 0 {
+ log.DiscardXORMLogger()
+ }
}
func newCacheService() {