remove dsn and add logging to all
This commit is contained in:
parent
ec1462cfef
commit
fed288f501
6 changed files with 135 additions and 6 deletions
|
@ -42,7 +42,7 @@ func main() {
|
|||
|
||||
err := sentry.Init(sentry.ClientOptions{
|
||||
// Either set your DSN here or set the SENTRY_DSN environment variable.
|
||||
Dsn: "https://0282823b5ee14546a4c154c129109a31@sentry.rvo.one/2",
|
||||
//Dsn: "",
|
||||
// Set TracesSampleRate to 1.0 to capture 100%
|
||||
// of transactions for performance monitoring.
|
||||
// We recommend adjusting this value in production,
|
||||
|
@ -119,8 +119,12 @@ func main() {
|
|||
}
|
||||
}()
|
||||
|
||||
log.Printf("INFO: dealsbot is now running. Press CTRL-C to exit.")
|
||||
sentry.CaptureMessage("DEBUG: dealsbot started")
|
||||
log.Printf("INFO: dealsbot (%v) is now running. Press CTRL-C to exit.", release)
|
||||
sentry.ConfigureScope(func(scope *sentry.Scope) {
|
||||
scope.SetLevel(sentry.LevelDebug)
|
||||
sentry.CaptureMessage("DEBUG: dealsbot started")
|
||||
})
|
||||
|
||||
s := make(chan os.Signal, 1)
|
||||
signal.Notify(s, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)
|
||||
<-s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue