Closed jeffreyyong closed 7 years ago
raven.SetDSN("******") raven.CapturePanic(func() { _, err := os.Open("non-existent-file") if err != nil { log.Fatal("panic string") panic("panic string") } }, nil)
I put the right DSN for sentry and I try to open a non-existent file to force the error to happen. I am wondering why nothing is being logged to my sentry account?
Is your program exiting before it is delivered? Try using CapturePanicAndWait
CapturePanicAndWait
I tried using CapturePanicAndWait method but it's still not working. I will try again
I put the right DSN for sentry and I try to open a non-existent file to force the error to happen. I am wondering why nothing is being logged to my sentry account?