From b8dff783e1f9883bf090b1e69ffca86f0de957cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Fri, 29 Jun 2018 15:10:19 +0200 Subject: [PATCH] Add sentry for sending crash logs --- Gopkg.lock | 14 +++++++++++++- Gopkg.toml | 4 ++++ cmd/ooni/main.go | 3 +++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Gopkg.lock b/Gopkg.lock index f4938e4..78a20b7 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -40,12 +40,24 @@ packages = ["quantile"] revision = "3a771d992973f24aa725d07868b467d1ddfceafb" +[[projects]] + name = "github.com/certifi/gocertifi" + packages = ["."] + revision = "deb3ae2ef2610fde3330947281941c562861188b" + version = "2018.01.18" + [[projects]] name = "github.com/fatih/color" packages = ["."] revision = "5b77d2a35fb0ede96d138fc9a99f5c9b6aef11b4" version = "v1.7.0" +[[projects]] + branch = "master" + name = "github.com/getsentry/raven-go" + packages = ["."] + revision = "ed7bcb39ff10f39ab08e317ce16df282845852fa" + [[projects]] name = "github.com/golang/protobuf" packages = ["proto"] @@ -201,6 +213,6 @@ [solve-meta] analyzer-name = "dep" analyzer-version = 1 - inputs-digest = "95c3e971d63b97b0dc531f67d98401cfa9968b99aacf1eed73ce801bbaadb0cd" + inputs-digest = "5aa544c8f252bc366d223acc4156a6203287d5eb72d46c10c937810d79adc864" solver-name = "gps-cdcl" solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml index 7a941ae..7bc1e5b 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -61,3 +61,7 @@ required = ["github.com/shuLhan/go-bindata/go-bindata"] [[constraint]] name = "github.com/oschwald/geoip2-golang" version = "1.2.1" + +[[constraint]] + branch = "master" + name = "github.com/getsentry/raven-go" diff --git a/cmd/ooni/main.go b/cmd/ooni/main.go index df0473e..601c6ff 100644 --- a/cmd/ooni/main.go +++ b/cmd/ooni/main.go @@ -3,6 +3,7 @@ package main import ( // commands "github.com/apex/log" + "github.com/getsentry/raven-go" _ "github.com/ooni/probe-cli/internal/cli/geoip" _ "github.com/ooni/probe-cli/internal/cli/info" @@ -18,6 +19,8 @@ import ( ) func main() { + raven.SetDSN("https://cb4510e090f64382ac371040c19b2258:8448daeebfa643c289ef398f8645980b@sentry.io/1234954") + err := app.Run() if err == nil { return