aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/log/log.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/log/log.go b/modules/log/log.go
index 5e4bf6c120..41be414051 100644
--- a/modules/log/log.go
+++ b/modules/log/log.go
@@ -23,10 +23,10 @@ func NewLogger(bufLen int64, mode, config string) {
logger := newLogger(bufLen)
isExist := false
- for _, l := range loggers {
+ for i, l := range loggers {
if l.adapter == mode {
isExist = true
- l = logger
+ loggers[i] = logger
}
}
if !isExist {