From 38bfe783148a59496cdfbc7b620ddcfb3b17261a Mon Sep 17 00:00:00 2001 From: M SHAH Date: Fri, 29 Dec 2023 14:34:07 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20fix:=20fix=20logging=20sybmol=20?= =?UTF-8?q?issue=20#3157?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/logging/logging.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } }