Skip to content

Commit 6065f07

Browse files
authored
Merge pull request #50 from netlify/disable-panic-handler
disable panic handler for bugsnag
2 parents f37bdad + 56fb19f commit 6065f07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nconf/logging.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func AddBugSnagHook(config *BugSnagConfig) error {
6868
bugsnag.Configure(bugsnag.Configuration{
6969
APIKey: config.APIKey,
7070
ReleaseStage: config.Environment,
71+
PanicHandler: func() {}, // this is to disable panic handling. The lib was forking and restarting the process (causing races)
7172
})
7273
hook, err := logrus_bugsnag.NewBugsnagHook()
7374
if err != nil {

0 commit comments

Comments
 (0)