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

"Must provide level parameter" errors #335

Open
inakie opened this issue Oct 8, 2024 · 2 comments
Open

"Must provide level parameter" errors #335

inakie opened this issue Oct 8, 2024 · 2 comments

Comments

@inakie
Copy link

inakie commented Oct 8, 2024

Hi,

I've installed the library in my Capacitor app and it seems to be working ok, but I'm getting these messages all the time, I can see them in the XCode console and they are also captured by Sentry.

⚡️  [info] - RevenueCat Purchases SDK configured for ios
ERROR MESSAGE:  {"message":"Must provide level parameter","errorMessage":"Must provide level parameter"}

⚡️  To Native ->  ⚡️  [warn] - {"message":"Must provide level parameter","errorMessage":"Must provide level parameter"}

I've tried to find the source of those messages but I haven't been able to, does anyone know?

Thanks a lot!

@RCGitBot
Copy link
Collaborator

RCGitBot commented Oct 8, 2024

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@tonidero
Copy link
Contributor

tonidero commented Oct 8, 2024

Hi @inakie, thanks for reporting. From that error message, seems that you're calling Purchases.setLogLevel without passing a level parameter. An example call would be: await Purchases.setLogLevel({ level: LOG_LEVEL.DEBUG });

If that doesn't help, could you provide a sample of your call to setLogLevel? Also debug logs from before/after would also be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants