napi告警处理

Signed-off-by: chenlang <chenlang28@h-partners.com>
This commit is contained in:
chenlang 2023-07-19 18:41:53 +08:00
parent ea8aadbb05
commit 3deaf7c2e7
2 changed files with 3 additions and 3 deletions

View File

@ -265,7 +265,7 @@ napi_value napi_get_uri(napi_env env, napi_callback_info info)
[](napi_env env, napi_status status, void* data) {
SETTING_LOG_INFO("settingsnapi : uri promise async end called callback");
AsyncCallbackInfo* asyncCallbackInfo = (AsyncCallbackInfo*)data;
SETTING_LOG_INFO("settingsnapi : uri promise end get callback value is %{public}s",
SETTING_LOG_INFO("settingsnapi : uri promise end get callback value is %{public}s",
asyncCallbackInfo->uri.c_str());
napi_value result = wrap_string_to_js(env, asyncCallbackInfo->uri);
napi_resolve_deferred(asyncCallbackInfo->env, asyncCallbackInfo->deferred, result);
@ -676,7 +676,7 @@ napi_value napi_get_value(napi_env env, napi_callback_info info)
SETTING_LOG_INFO("settingsnapi : promise async execute callback");
AsyncCallbackInfo* asyncCallbackInfo = (AsyncCallbackInfo*)data;
SETTING_LOG_INFO("settingsnapi : promise get callback key is %{public}s", asyncCallbackInfo->key.c_str());
SETTING_LOG_INFO("settingsnapi : promise get callback value is %{public}s",
SETTING_LOG_INFO("settingsnapi : promise get callback value is %{public}s",
asyncCallbackInfo->value.c_str());
std::vector<std::string> columns;

View File

@ -1,4 +1,4 @@
/**
/*
* Copyright (c) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.