-
Notifications
You must be signed in to change notification settings - Fork 32
(fix) change log level to warn when experiment not in datafile #361
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
(fix) change log level to warn when experiment not in datafile #361
Conversation
606aa49
to
0d6976d
Compare
Pull Request Test Coverage Report for Build 1363
💛 - Coveralls |
… event In a similar vein as optimizely/java-sdk#361, the JavaScript SDK would be less noisy when being used with integrations like Segment if we only logged a warning when an event key is not found in the datafile. This PR will make that change and unblock event tracking.
… event In a similar vein as optimizely/java-sdk#361, the JavaScript SDK would be less noisy when being used with integrations like Segment if we only logged a warning when an event key is not found in the datafile. This PR will make that change and unblock event tracking.
… event In a similar vein as optimizely/java-sdk#361, the JavaScript SDK would be less noisy when being used with integrations like Segment if we only logged a warning when an event key is not found in the datafile. This PR will make that change and unblock event tracking.
… event (#418) ## Summary - Log a warning when an event key is not found in the datafile instead of throwing an Error - Log a warning mentioning that user tracking is not happening - Update actual error logger in catch to be an ERROR instead of INFO - Updated CONTRIBUTING.md instructions with CHANGELOG.md update instructions In a similar vein as optimizely/java-sdk#361, the JavaScript SDK noise could be more configurable for use with integrations like Segment. _Note:_ Please pardon the prettier noise. I tried to do a prep PR in #419 but there are still changes when I save. The actual functionality changes are in 646665d. ## Test plan - Updated unit test to cover new functionality - Ensure other tests pass ## Issues - [OASIS-6054](https://optimizely.atlassian.net/browse/OASIS-6054)
Thanks for your contribution! Can you all please sign the CLA in the CONTRIBUTING.MD doc if you haven't yet? Meanwhile I will get this reviewed. |
I forgot to tag you guys, but @compass-vin @alanhu1996 since you both have commits in this PR, can you guys sign our CLA and I can get this merged and released asap |
Summary
WARN
when experiment and event names are passed that are not in the datafile. Currently it is anERROR
, however that seems to be too severe since the situation is completely recoverable. (see Design decision behind error log for Event and Experiment not in datafile #353)Test plan
WARN
severity levelIssues