diff options
author | Unknwon <u@gogs.io> | 2016-07-15 17:06:17 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-07-15 17:06:17 +0800 |
commit | 194a742fb922c20db0a70100e5f2aaadf03c2acf (patch) | |
tree | a14112ccd11a39c1a1990ac58892cf4f6a8952cd /modules | |
parent | 160956dd31aaacc46df2c36708311ac3efd2e10d (diff) | |
download | gitea-194a742fb922c20db0a70100e5f2aaadf03c2acf.tar.gz gitea-194a742fb922c20db0a70100e5f2aaadf03c2acf.zip |
#2798 fix assign operation not take effect
Diffstat (limited to 'modules')
-rw-r--r-- | modules/log/log.go | 4 |
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 { |