-
Notifications
You must be signed in to change notification settings - Fork 37
[BUG] Can't set log level #265
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
Comments
I was just in the process of creating a bug for this exact scenario. Luckily saw this one first! It's frustrating that, as a consumer, I cannot change the log level of the react-sdk internal logger as it is causing a lot of unnecessary log noise for my services in certain scenarios. |
I was poking around and it seems like the easiest solution is to export the instance of logger in |
This definitely requires some attention. There are some inconsistencies that I can confirm. I have created an internal ticket FSSDK-10554 for further investigation. |
@AntonRatnick, there is a patch release v3.2.2 out with the fix. Could you please check and confirm? |
This has been fixed and in production for a while (>=v3.2.2) |
Is there an existing issue for this?
SDK Version
3.1.1
Current Behavior
Setting log level to
Error
, don't reduce amount of warnings and info logs in consoleExpected Behavior
If log
level == Error
no info or warning logs appear in console.Steps To Reproduce
createInstance
also not workingReact Framework
No response
Browsers impacted
No response
Link
If I am not mistaken this is the logger we creating, without any arguments beside the prefix.
react-sdk/src/client.ts
Line 20 in d43cabd
Here we import created logger, and use it.
Logs
No response
Severity
No response
Workaround/Solution
No response
Recent Change
No response
Conflicts
No response
The text was updated successfully, but these errors were encountered: