未验证 提交 00e3ed1a 编写于 作者: R runzexia 提交者: GitHub

Merge pull request #399 from runzexia/recover-panic

recover from panic
......@@ -71,6 +71,7 @@ func Run(s *options.ServerRunOptions) error {
waitForResourceSync()
container := runtime.Container
container.DoNotRecover(false)
container.Filter(filter.Logging)
for _, webservice := range container.RegisteredWebServices() {
......
......@@ -83,6 +83,7 @@ func Run(s *options.ServerRunOptions) error {
container := runtime.Container
container.Filter(filter.Logging)
container.DoNotRecover(false)
for _, webservice := range container.RegisteredWebServices() {
for _, route := range webservice.Routes() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册