Disable sentry based crash reporting in probe-cli (#228)
This commit is contained in:
parent
311c30a961
commit
978cd28d88
5 changed files with 1 additions and 81 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/apex/log"
|
||||
"github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/cli/app"
|
||||
_ "github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/cli/autorun"
|
||||
_ "github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/cli/geoip"
|
||||
|
|
@ -14,12 +13,8 @@ import (
|
|||
_ "github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/cli/show"
|
||||
_ "github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/cli/upload"
|
||||
_ "github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/cli/version"
|
||||
"github.com/ooni/probe-cli/v3/cmd/ooniprobe/internal/crashreport"
|
||||
)
|
||||
|
||||
func main() {
|
||||
if err, _ := crashreport.CapturePanic(app.Run, nil); err != nil {
|
||||
log.WithError(err.(error)).Error("panic in app.Run")
|
||||
crashreport.Wait()
|
||||
}
|
||||
app.Run()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue