8000 feat(core)[OASIS-6054]: Change Error to LOG_LEVEL.WARNING for unfound… · optimizely/javascript-sdk@7be7786 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7be7786

Browse files
author
Derek Hammond
committed
feat(core)[OASIS-6054]: Change Error to LOG_LEVEL.WARNING for unfound 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 8000 not found in the datafile. This PR will make that change and unblock event tracking.
1 parent a04a74a commit 7be7786

File tree

1 file changed

+1
-1
lines changed
  • packages/optimizely-sdk/lib/utils/enums

1 file changed

+1
-1
lines changed

packages/optimizely-sdk/lib/utils/enums/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ exports.ERROR_MESSAGES = {
4040
INVALID_JSON: '%s: JSON object is not valid.',
4141
INVALID_ERROR_HANDLER: '%s: Provided "errorHandler" is in an invalid format.',
4242
INVALID_EVENT_DISPATCHER: '%s: Provided "eventDispatcher" is in an invalid format.',
43-
INVALID_EVENT_KEY: '%s: Event key %s is not in datafile.',
4443
INVALID_EVENT_TAGS: '%s: Provided event tags are in an invalid format.',
4544
INVALID_EXPERIMENT_KEY: '%s: Experiment key %s is not in datafile. It is either invalid, paused, or archived.',
4645
INVALID_EXPERIMENT_ID: '%s: Experiment ID %s is not in datafile.',
@@ -72,6 +71,7 @@ exports.LOG_MESSAGES = {
7271
DISPATCH_CONVERSION_EVENT: '%s: Dispatching conversion event to URL %s with params %s.',
7372
DISPATCH_IMPRESSION_EVENT: '%s: Dispatching impression event to URL %s with params %s.',
7473
DEPRECATED_EVENT_VALUE: '%s: Event value is deprecated in %s call.',
74+
EVENT_KEY_NOT_FOUND: '%s: Event key %s is not in datafile.',
7575
EXPERIMENT_NOT_RUNNING: '%s: Experiment %s is not running.',
7676
FEATURE_ENABLED_FOR_USER: '%s: Feature %s is enabled for user %s.',
7777
FEATURE_NOT_ENABLED_FOR_USER: '%s: Feature %s is not enabled for user %s.',

0 commit comments

Comments
 (0)
0