mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-23 15:00:17 +00:00
hidebug日志重复率优化
Signed-off-by: zhou_xq <zhouxiaoqin4@huawei.com>
This commit is contained in:
parent
e9bbf9e0d9
commit
ef7c7cead2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user