update
							parent
							
								
									0fdfb59809
								
							
						
					
					
						commit
						3679bd502c
					
				| 
						 | 
				
			
			@ -82,7 +82,7 @@ func NewLogger(serverName string, config *Config) *ZapLog {
 | 
			
		|||
	if config.ZapOpt != nil {
 | 
			
		||||
		opts = config.ZapOpt
 | 
			
		||||
	} else {
 | 
			
		||||
		opts = append(opts, zap.AddCaller(), zap.AddCallerSkip(1))
 | 
			
		||||
		opts = append(opts, zap.AddCaller(), zap.AddCallerSkip(2))
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	zl := zap.New(zapcore.NewTee(cores...), opts...)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue