purchases-capacitor icon indicating copy to clipboard operation
purchases-capacitor copied to clipboard

"Must provide level parameter" errors

Open inakie opened this issue 1 year ago • 2 comments

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!

inakie avatar Oct 08 '24 15:10 inakie

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

RCGitBot avatar Oct 08 '24 15:10 RCGitBot

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.

tonidero avatar Oct 08 '24 15:10 tonidero