Skip to content

Commit

Permalink
[FSSDK-11090] remove unnecessary console.log (#992)
Browse files Browse the repository at this point in the history
  • Loading branch information
raju-opti authored Jan 28, 2025
1 parent 281930a commit 493b181
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/optimizely/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
import { LoggerFacade } from '../logging/logger';
import { sprintf, objectValues } from '../utils/fns';
import { createNotificationCenter, DefaultNotificationCenter, NotificationCenter } from '../notification_center';
import { createNotificationCenter, DefaultNotificationCenter } from '../notification_center';
import { EventProcessor } from '../event_processor/event_processor';

import { OdpManager } from '../odp/odp_manager';
Expand All @@ -42,7 +42,7 @@ import OptimizelyUserContext from '../optimizely_user_context';
import { ProjectConfigManager } from '../project_config/project_config_manager';
import { createDecisionService, DecisionService, DecisionObj } from '../core/decision_service';
import { buildLogEvent } from '../event_processor/event_builder/log_event';
import { buildImpressionEvent, buildConversionEvent, ImpressionEvent } from '../event_processor/event_builder/user_event';
import { buildImpressionEvent, buildConversionEvent } from '../event_processor/event_builder/user_event';
import fns from '../utils/fns';
import { validate } from '../utils/attributes_validator';
import * as eventTagsValidator from '../utils/event_tags_validator';
Expand Down Expand Up @@ -388,10 +388,8 @@ export default class Optimizely implements Client {
return;
}

console.log(eventKey, userId, attributes, eventTags);

if (!projectConfig.eventWithKeyExists(configObj, eventKey)) {
console.log('eventKey not found',);
this.logger?.warn(EVENT_KEY_NOT_FOUND, eventKey);
this.logger?.warn(NOT_TRACKING_USER, userId);
return;
Expand Down

0 comments on commit 493b181

Please sign in to comment.