Skip to content

Commit

Permalink
Disable sentry
Browse files Browse the repository at this point in the history
It reports too many irrelevant issues (401, 404) and we dont look at it.
To avoid maxing out our quota
  • Loading branch information
erebe committed Mar 18, 2024
1 parent cd62e52 commit 34d1841
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func initConfig() {
os.Exit(0)
}
}
initSentry()
//initSentry()
}

func initSentry() {

Check failure on line 41 in cmd/root.go

View workflow job for this annotation

GitHub Actions / lint

func `initSentry` is unused (unused)

Check failure on line 41 in cmd/root.go

View workflow job for this annotation

GitHub Actions / release-and-packages

func `initSentry` is unused (unused)
Expand Down
12 changes: 6 additions & 6 deletions utils/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ package utils
import (
"fmt"
"github.com/fatih/color"
"github.com/getsentry/sentry-go"
// "github.com/getsentry/sentry-go"
"github.com/pterm/pterm"
log "github.com/sirupsen/logrus"
"time"
// "time"
)

func PrintlnError(err error) {
localHub := sentry.CurrentHub().Clone()
localHub.Scope().SetTransaction(err.Error())
localHub.CaptureException(err)
//localHub := sentry.CurrentHub().Clone()
//localHub.Scope().SetTransaction(err.Error())
//localHub.CaptureException(err)
fmt.Printf("%s: %v\n", color.RedString("Error"), err)
defer localHub.Flush(5 * time.Second)
//defer localHub.Flush(5 * time.Second)
}

func PrintlnInfo(info string) {
Expand Down

0 comments on commit 34d1841

Please sign in to comment.