mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	#2798 fix assign operation not take effect
This commit is contained in:
		@@ -3,7 +3,7 @@ Gogs - Go Git Service [
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
##### Current tip version: 0.9.42 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
 | 
					##### Current tip version: 0.9.43 (see [Releases](https://github.com/gogits/gogs/releases) for binary versions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| Web | UI  | Preview  |
 | 
					| Web | UI  | Preview  |
 | 
				
			||||||
|:-------------:|:-------:|:-------:|
 | 
					|:-------------:|:-------:|:-------:|
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							@@ -17,7 +17,7 @@ import (
 | 
				
			|||||||
	"github.com/gogits/gogs/modules/setting"
 | 
						"github.com/gogits/gogs/modules/setting"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const APP_VER = "0.9.42.0712"
 | 
					const APP_VER = "0.9.43.0715"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func init() {
 | 
					func init() {
 | 
				
			||||||
	runtime.GOMAXPROCS(runtime.NumCPU())
 | 
						runtime.GOMAXPROCS(runtime.NumCPU())
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,10 +23,10 @@ func NewLogger(bufLen int64, mode, config string) {
 | 
				
			|||||||
	logger := newLogger(bufLen)
 | 
						logger := newLogger(bufLen)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	isExist := false
 | 
						isExist := false
 | 
				
			||||||
	for _, l := range loggers {
 | 
						for i, l := range loggers {
 | 
				
			||||||
		if l.adapter == mode {
 | 
							if l.adapter == mode {
 | 
				
			||||||
			isExist = true
 | 
								isExist = true
 | 
				
			||||||
			l = logger
 | 
								loggers[i] = logger
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if !isExist {
 | 
						if !isExist {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1 +1 @@
 | 
				
			|||||||
0.9.42.0712
 | 
					0.9.43.0715
 | 
				
			||||||
		Reference in New Issue
	
	Block a user