mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 03:52:36 +02:00
#2798 fix assign operation not take effect
This commit is contained in:
1 parent
160956dd31
commit
194a742fb9
4 files changed
+5
-5
No files matched your search
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user