Log to sentry only if we are in `production` mode