replaced logging with direct sentry capturing