浏览代码

prevent forking the process by Bugsnag

DarthSim 1 年之前
父节点
当前提交
d31d310dd5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      errorreport/bugsnag/bugsnag.go

+ 1 - 0
errorreport/bugsnag/bugsnag.go

@@ -15,6 +15,7 @@ func Init() {
 		bugsnag.Configure(bugsnag.Configuration{
 			APIKey:       config.BugsnagKey,
 			ReleaseStage: config.BugsnagStage,
+			PanicHandler: func() {}, // Disable forking the process
 		})
 		enabled = true
 	}