aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-07-15 17:06:17 +0800
committerUnknwon <u@gogs.io>2016-07-15 17:06:17 +0800
commit194a742fb922c20db0a70100e5f2aaadf03c2acf (patch)
treea14112ccd11a39c1a1990ac58892cf4f6a8952cd /modules
parent160956dd31aaacc46df2c36708311ac3efd2e10d (diff)
downloadgitea-194a742fb922c20db0a70100e5f2aaadf03c2acf.tar.gz
gitea-194a742fb922c20db0a70100e5f2aaadf03c2acf.zip
#2798 fix assign operation not take effect
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 {