mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 21:50:28 +08:00 
			
		
		
		
	
		
			
	
	
		
			13 lines
		
	
	
		
			118 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			118 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package utils
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"runtime/debug"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func Recover() {
							 | 
						||
| 
								 | 
							
									e := recover()
							 | 
						||
| 
								 | 
							
									if e != nil {
							 | 
						||
| 
								 | 
							
										debug.PrintStack()
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
								}
							 |