diff --git a/packages/contentstack-utilities/src/logger.ts b/packages/contentstack-utilities/src/logger.ts index 5f810438c3..e457e22395 100644 --- a/packages/contentstack-utilities/src/logger.ts +++ b/packages/contentstack-utilities/src/logger.ts @@ -206,7 +206,7 @@ export default class Logger { * the sensitiveKeys array, and false otherwise. */ isSensitiveKey(keyStr: string) { - if (keyStr && typeof keyStr !== 'symbol') { + if (keyStr && typeof keyStr === 'string') { return this.sensitiveKeys.some((regex) => regex.test(keyStr)); } }