Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paywalls: log error when creating PaywallState.Error #1574

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

NachoSoto
Copy link
Contributor

@NachoSoto NachoSoto commented Jan 25, 2024

I'm currently debugging an issue with a developer, and realized that we have no way of knowing if the paywall goes into this state other than the error dialog being displayed.
This logs an error as well to make it easier to debug.

Example:

RevenueCatUI com.revenuecat.paywall_tester        E  Paywall transitioned to error state: Error 10: Error performing request.

I'm currently debugging an issue with a developer, and realized that we have no way of knowing if the paywall goes into this state other than the error dialog being displayed.
This logs an error as well to make it easier to debug.

Example:
```
RevenueCatUI            com.revenuecat.paywall_tester        E  Paywall transitioned to error state: Error 10: Error performing request.
```
@NachoSoto NachoSoto added the refactor A code change that neither fixes a bug nor adds a feature label Jan 25, 2024
@NachoSoto NachoSoto requested review from a team January 25, 2024 23:34
Copy link

codecov bot commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c923be2) 83.72% compared to head (2a290ce) 83.72%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1574   +/-   ##
=======================================
  Coverage   83.72%   83.72%           
=======================================
  Files         218      218           
  Lines        7246     7246           
  Branches     1007     1007           
=======================================
  Hits         6067     6067           
  Misses        788      788           
  Partials      391      391           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@NachoSoto NachoSoto merged commit 6207bda into main Jan 26, 2024
9 checks passed
@NachoSoto NachoSoto deleted the paywalls-error-log branch January 26, 2024 15:33
@NachoSoto NachoSoto mentioned this pull request Jan 26, 2024
vegaro pushed a commit that referenced this pull request Feb 5, 2024
**This is an automatic release.**

### RevenueCatUI
* `Paywalls`: fix template 5 title alignment (#1585) via NachoSoto
(@NachoSoto)
* `Paywalls`: replace `TextAlign.Left` with `TextAlign.Start` to better
support RTL (#1584) via NachoSoto (@NachoSoto)
* Paywall views: Support updating options state after initial layout
(#1582) via Toni Rico (@tonidero)
* `Paywalls`: improve `PaywallData.configForLocale()` disambiguation
(#1579) via NachoSoto (@NachoSoto)
### Dependency Updates
* Bump fastlane-plugin-revenuecat_internal from `e6ba247` to `9c82c7a`
(#1583) via dependabot[bot] (@dependabot[bot])
### Other Changes
* `OfferingsFactory`: debug logs when creating `Offerings` (#1576) via
NachoSoto (@NachoSoto)
* `Paywalls`: log error when creating `PaywallState.Error` (#1574) via
NachoSoto (@NachoSoto)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor A code change that neither fixes a bug nor adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants