hidebug日志重复率优化

Signed-off-by: zhou_xq <zhouxiaoqin4@huawei.com>
This commit is contained in:
zhou_xq 2024-06-28 11:40:44 +08:00
parent e9bbf9e0d9
commit ef7c7cead2

View File

@ -587,7 +587,7 @@ static napi_value RemoveNapiWrap(napi_env env, napi_callback_info info)
if (argc != REMOVE_NAPI_WRAP_PARAM_COUNT ||
(!MatchValueType(env, argv[ARRAY_INDEX_FIRST], napi_object) ||
!MatchValueType(env, argv[ARRAY_INDEX_SECOND], napi_boolean))) {
HILOG_ERROR(LOG_CORE, "RemoveNapiWrap Failed to parse parameters, argc %{public}d", (int)argc);
HILOG_DEBUG(LOG_CORE, "RemoveNapiWrap Failed to parse parameters, argc %{public}d", (int)argc);
std::string paramErrorMessage = "The parameter check failed.";
napi_throw_error(env, std::to_string(ErrorCode::PARAMETER_ERROR).c_str(), paramErrorMessage.c_str());
return CreateUndefined(env);