recover from panic

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2019-05-09 15:16:54 +08:00
parent be0ae7780a
commit 578af2ae19
2 changed files with 2 additions and 0 deletions

View File

@@ -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() {

View File

@@ -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() {