未验证 提交 578af2ae 编写于 作者: R runzexia

recover from panic

Signed-off-by: Nrunzexia <runzexia@yunify.com>
上级 be0ae778
......@@ -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.
先完成此消息的编辑!
想要评论请 注册