aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/log.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/log.go')
-rw-r--r--modules/setting/log.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/setting/log.go b/modules/setting/log.go
index e7a4658006..5ffb2479dd 100644
--- a/modules/setting/log.go
+++ b/modules/setting/log.go
@@ -261,9 +261,12 @@ func newLogService() {
continue
}
- sec, err := Cfg.GetSection("log." + name)
+ sec, err := Cfg.GetSection("log." + name + ".default")
if err != nil {
- sec, _ = Cfg.NewSection("log." + name)
+ sec, err = Cfg.GetSection("log." + name)
+ if err != nil {
+ sec, _ = Cfg.NewSection("log." + name)
+ }
}
provider, config, levelName := generateLogConfig(sec, name, options)