mirror of
				https://github.com/bufanyun/hotgo.git
				synced 2025-11-04 16:23:43 +08:00 
			
		
		
		
	更新运行时致命错误打印堆栈
This commit is contained in:
		@@ -2,17 +2,16 @@ package main
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import (
 | 
					import (
 | 
				
			||||||
	"github.com/bufanyun/hotgo/boot"
 | 
						"github.com/bufanyun/hotgo/boot"
 | 
				
			||||||
 | 
						"github.com/gogf/gf/v2/errors/gerror"
 | 
				
			||||||
	"github.com/gogf/gf/v2/frame/g"
 | 
						"github.com/gogf/gf/v2/frame/g"
 | 
				
			||||||
	"github.com/gogf/gf/v2/os/gctx"
 | 
						"github.com/gogf/gf/v2/os/gctx"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func main() {
 | 
					func main() {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	var (
 | 
						var ctx = gctx.New()
 | 
				
			||||||
		ctx = gctx.New()
 | 
					 | 
				
			||||||
	)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if err := boot.Main.RunWithError(ctx); err != nil {
 | 
						if err := boot.Main.RunWithError(ctx); err != nil {
 | 
				
			||||||
		g.Log().Fatal(ctx, err)
 | 
							g.Log().Fatal(ctx, gerror.Stack(err))
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										
											BIN
										
									
								
								hotgo-server/resource/public/favicon.ico
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								hotgo-server/resource/public/favicon.ico
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 8.0 KiB  | 
		Reference in New Issue
	
	Block a user