remove the deep Caller
This commit is contained in:
		
							parent
							
								
									8d797a4a5e
								
							
						
					
					
						commit
						2288ac868c
					
				| @ -155,9 +155,6 @@ func (bl *BeeLogger) writerMsg(loglevel int, msg string) error { | |||||||
| 	lm.level = loglevel | 	lm.level = loglevel | ||||||
| 	if bl.enableFuncCallDepth { | 	if bl.enableFuncCallDepth { | ||||||
| 		_, file, line, ok := runtime.Caller(bl.loggerFuncCallDepth + 1) | 		_, file, line, ok := runtime.Caller(bl.loggerFuncCallDepth + 1) | ||||||
| 		if !ok { |  | ||||||
| 			_, file, line, ok = runtime.Caller(bl.loggerFuncCallDepth) |  | ||||||
| 		} |  | ||||||
| 		if ok { | 		if ok { | ||||||
| 			_, filename := path.Split(file) | 			_, filename := path.Split(file) | ||||||
| 			lm.msg = fmt.Sprintf("[%s:%d] %s", filename, line, msg) | 			lm.msg = fmt.Sprintf("[%s:%d] %s", filename, line, msg) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user