diff --git a/src/roktManager.ts b/src/roktManager.ts index 4a9d48e6..0039d7d3 100644 --- a/src/roktManager.ts +++ b/src/roktManager.ts @@ -207,13 +207,13 @@ export default class RoktManager { if (emailChanged) { newIdentities.email = newEmail; if (newEmail) { - this.logger.warning(`Email mismatch detected. Current email, ${currentEmail} differs from email passed to selectPlacements call, ${newEmail}. Proceeding to call identify with ${newEmail}. Please verify your implementation.`); + this.logger.warning(`Email mismatch detected. Current email differs from email passed to selectPlacements call. Proceeding to call identify with email from selectPlacements call. Please verify your implementation.`); } } if (hashedEmailChanged) { newIdentities[this.mappedEmailShaIdentityType] = newHashedEmail; - this.logger.warning(`emailsha256 mismatch detected. Current mParticle ${this.mappedEmailShaIdentityType} identity, ${currentHashedEmail}, differs from 'emailsha256' passed to selectPlacements call, ${newHashedEmail}. Proceeding to call identify with ${this.mappedEmailShaIdentityType} set to ${newHashedEmail}. Please verify your implementation`); + this.logger.warning(`emailsha256 mismatch detected. Current mParticle hashedEmail differs from hashedEmail passed to selectPlacements call. Proceeding to call identify with hashedEmail from selectPlacements call. Please verify your implementation.`); } if (!isEmpty(newIdentities)) { diff --git a/test/jest/roktManager.spec.ts b/test/jest/roktManager.spec.ts index 58beeedc..69085d04 100644 --- a/test/jest/roktManager.spec.ts +++ b/test/jest/roktManager.spec.ts @@ -1030,7 +1030,7 @@ describe('RoktManager', () => { } }, expect.any(Function)); expect(mockMPInstance.Logger.warning).toHaveBeenCalledWith( - 'Email mismatch detected. Current email, old@example.com differs from email passed to selectPlacements call, new@example.com. Proceeding to call identify with new@example.com. Please verify your implementation.' + 'Email mismatch detected. Current email differs from email passed to selectPlacements call. Proceeding to call identify with email from selectPlacements call. Please verify your implementation.' ); }); @@ -1217,7 +1217,7 @@ describe('RoktManager', () => { } }, expect.any(Function)); expect(mockMPInstance.Logger.warning).toHaveBeenCalledWith( - "emailsha256 mismatch detected. Current mParticle other5 identity, old-other-value, differs from 'emailsha256' passed to selectPlacements call, new-emailsha256-value. Proceeding to call identify with other5 set to new-emailsha256-value. Please verify your implementation" + "emailsha256 mismatch detected. Current mParticle hashedEmail differs from hashedEmail passed to selectPlacements call. Proceeding to call identify with hashedEmail from selectPlacements call. Please verify your implementation." ); }); @@ -1307,7 +1307,7 @@ describe('RoktManager', () => { } }, expect.any(Function)); expect(mockMPInstance.Logger.warning).toHaveBeenCalledWith( - "emailsha256 mismatch detected. Current mParticle other identity, undefined, differs from 'emailsha256' passed to selectPlacements call, new-emailsha256-value. Proceeding to call identify with other set to new-emailsha256-value. Please verify your implementation" + "emailsha256 mismatch detected. Current mParticle hashedEmail differs from hashedEmail passed to selectPlacements call. Proceeding to call identify with hashedEmail from selectPlacements call. Please verify your implementation." ); });