diff --git a/src/logging/logging.ts b/src/logging/logging.ts index 7308bd207b..a47f8ee1aa 100644 --- a/src/logging/logging.ts +++ b/src/logging/logging.ts @@ -23,7 +23,7 @@ const sensitiveKeys = [ ]; function isSensitiveKey(keyStr) { - if (keyStr) { + if (keyStr && typeof keyStr == "string") { return sensitiveKeys.some(regex => regex.test(keyStr)); } }