Skip to content

Commit 90c3049

Browse files
committed
fixes
1 parent 3cd4a5d commit 90c3049

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

lib/message/log_message.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const INVALIDATE_CMAB_CACHE = 'Invalidating CMAB cache for user %s and ru
6969
export const CMAB_CACHE_HIT = 'Cache hit for user %s and rule %s.';
7070
export const CMAB_CACHE_ATTRIBUTES_MISMATCH = 'CMAB cache attributes mismatch for user %s and rule %s, fetching new decision.';
7171
export const CMAB_CACHE_MISS = 'Cache miss for user %s and rule %s.';
72+
export const ODP_IDENTIFY_NOT_DISPATCHED= 'ODP identify event is not dispatched (fewer than 2 valid identifiers).'
7273

7374
export const messages: string[] = [];
7475

lib/odp/odp_manager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { Maybe } from '../utils/type';
3232
import { sprintf } from '../utils/fns';
3333
import { SERVICE_STOPPED_BEFORE_RUNNING } from '../service';
3434
import { Platform } from '../platform_support';
35+
import { ODP_IDENTIFY_NOT_DISPATCHED } from '../message/log_message';
3536

3637
export interface OdpManager extends Service {
3738
updateConfig(odpIntegrationConfig: OdpIntegrationConfig): boolean;
@@ -232,7 +233,7 @@ export class DefaultOdpManager extends BaseService implements OdpManager {
232233
// Identify requires 2+ identifiers to link (e.g., vuid + fs_user_id).
233234
// A single identifier has no cross-reference value and generates unnecessary traffic.
234235
if (identifiers.size < 2) {
235-
this.logger.log(LogLevel.Debug, 'ODP identify event is not dispatched (fewer than 2 valid identifiers).');
236+
this.logger?.debug(ODP_IDENTIFY_NOT_DISPATCHED);
236237
return;
237238
}
238239

0 commit comments

Comments
 (0)