Skip to content

Commit 038b14c

Browse files
authored
Add logging message for optimizely.track() (#281)
1 parent eb70509 commit 038b14c

File tree

1 file changed

+1
-0
lines changed
  • packages/optimizely-sdk/lib/optimizely

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ Optimizely.prototype.track = function(eventKey, userId, attributes, eventTags) {
299299
clientVersion: this.clientVersion,
300300
configObj: configObj,
301301
});
302+
this.logger.log(LOG_LEVEL.INFO, sprintf(enums.LOG_MESSAGES.TRACK_EVENT, MODULE_NAME, eventKey, userId));
302303
// TODO is it okay to not pass a projectConfig as second argument
303304
this.eventProcessor.process(conversionEvent);
304305
this.__emitNotificationCenterTrack(eventKey, userId, attributes, eventTags);

0 commit comments

Comments
 (0)