Skip to content

Commit

Permalink
chore: remove sentry from dev build (scaleway#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone authored May 20, 2020
1 parent f1f8607 commit 986a104
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/scw/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ func main() {
}

// Catch every panic after this line. This will send an anonymous report on Scaleway's sentry.
defer sentry.RecoverPanicAndSendReport(buildInfo)
if buildInfo.IsRelease() {
defer sentry.RecoverPanicAndSendReport(buildInfo)
}

exitCode, _, _ := core.Bootstrap(&core.BootstrapConfig{
Args: os.Args,
Expand Down

0 comments on commit 986a104

Please sign in to comment.