diff --git a/deps_adapter/os_adapter/impl/src/hc_log.c b/deps_adapter/os_adapter/impl/src/hc_log.c index 1444e919..fdd2e1a0 100644 --- a/deps_adapter/os_adapter/impl/src/hc_log.c +++ b/deps_adapter/os_adapter/impl/src/hc_log.c @@ -21,8 +21,6 @@ #define LOG_PRINT_MAX_LEN 2048 -static const char *SENSITIVE_WORDS[] = { "droid" }; - #ifdef DEV_AUTH_DEBUG_PRINTF #include @@ -67,23 +65,6 @@ static void DevAuthOutPrint(const char *buf, DevAuthLogLevel level) } } -static void ReplaceSensitiveWord(char *msg, const char *sensitiveWord) -{ - uint32_t len = HcStrlen(sensitiveWord); - char *ptr = strstr(msg, sensitiveWord); - while (ptr != NULL) { - (void)memset_s(ptr, len, '*', len); - ptr = strstr(ptr + 1, sensitiveWord); - } -} - -static void DesensitizeLogMsg(char *msg) -{ - for (uint32_t i = 0; i < sizeof(SENSITIVE_WORDS) / sizeof(SENSITIVE_WORDS[0]); i++) { - ReplaceSensitiveWord(msg, SENSITIVE_WORDS[i]); - } -} - void DevAuthLogPrint(DevAuthLogLevel level, const char *funName, const char *fmt, ...) { int32_t ulPos = 0; @@ -105,7 +86,6 @@ void DevAuthLogPrint(DevAuthLogLevel level, const char *funName, const char *fmt if (res < 0) { return; } - DesensitizeLogMsg(outStr); DevAuthOutPrint(outStr, level); }