Skip to content

Commit

Permalink
disable sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
stormofice committed Oct 3, 2023
1 parent 3f0eb4d commit f8c5904
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cmd/mensatt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/mensatt/backend/pkg/utils"
"log"
"path/filepath"
"time"
)

func main() {
Expand Down Expand Up @@ -69,12 +68,12 @@ func main() {
sentryOptions.Debug = true
}

err = sentry.Init(sentryOptions)
if err != nil {
log.Fatalln("Sentry initialization failed:", err)
}
// err = sentry.Init(sentryOptions)
// if err != nil {
// log.Fatalln("Sentry initialization failed:", err)
// }
// Flush buffered events before the program terminates
defer sentry.Flush(2 * time.Second)
// defer sentry.Flush(2 * time.Second)

// Details for database connection
username, err := utils.GetOrFile("DATABASE_USERNAME")
Expand Down

0 comments on commit f8c5904

Please sign in to comment.