-
Notifications
You must be signed in to change notification settings - Fork 83
feat(core)[OASIS-6054]: Change Error to LOG_LEVEL.WARNING for unfound event #418
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 10000 statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core)[OASIS-6054]: Change Error to LOG_LEVEL.WARNING for unfound event #418
Conversation
@@ -57,7 +57,10 @@ var DEFAULT_ONREADY_TIMEOUT = 30000; | |||
function Optimizely(config) { | |||
var clientEngine = config.clientEngine; | |||
if (enums.VALID_CLIENT_ENGINES.indexOf(clientEngine) === -1) { | |||
config.logger.log(LOG_LEVEL.INFO, jsSdkUtils.sprintf(LOG_MESSAGES.INVALID_CLIENT_ENGINE, MODULE_NAME, clientEngine)); | |||
config.logger.log( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of this file's updates are Prettier changes. Here's the only updated part:
@@ -46,11 +46,11 @@ var DECISION_SOURCES = enums.DECISION_SOURCES; | |||
var DECISION_NOTIFICATION_TYPES = enums.DECISION_NOTIFICATION_TYPES; | |||
var FEATURE_VARIABLE_TYPES = enums.FEATURE_VARIABLE_TYPES; | |||
|
|||
describe('lib/optimizely', function() { | |||
describe('lib/optimizely', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of this file's updates are Prettier changes. Here's the only updated part:
Run prettier on files changed in #418 so it's easier to review
80b9cd6
to
0465565
Compare
… 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.
0465565
to
69ef35f
Compare
69ef35f
to
646665d
Compare
@@ -46,11 +46,11 @@ var DECISION_SOURCES = enums.DECISION_SOURCES; | |||
var DECISION_NOTIFICATION_TYPES = enums.DECISION_NOTIFICATION_TYPES; | |||
var FEATURE_VARIABLE_TYPES = enums.FEATURE_VARIABLE_TYPES; | |||
|
|||
describe('lib/optimizely', function () { | |||
describe('lib/optimizely', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of this file's updates are Prettier changes. Here's the only updated part:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@circAssimilate LGTM. One last thing, could you please add an entry to CHANGELOG.md for this change?
Summary
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
Issues