Capture warnings in Sentry