Преглед на файлове

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
 	}