address logs are not printed

Signed-off-by: wangfeifan <wangfeifan2@huawei.com>
This commit is contained in:
wangfeifan 2023-04-06 15:51:02 +08:00
parent 21ecc66cee
commit 181f5e0eb0
4 changed files with 2 additions and 7 deletions

View File

@ -120,8 +120,6 @@ bool JsPrintExtension::InitContextObj(JsRuntime &jsRuntime, NativeObject *&extOb
return false;
}
PRINT_HILOGD("Set Print extension context pointer: %{public}p", context.get());
nativeObj->SetNativePointer(
new std::weak_ptr<AbilityRuntime::Context>(context),
[](NativeEngine *, void *data, void *) {

View File

@ -272,7 +272,6 @@ private:
} else {
serialNumber_ = 0;
}
PRINT_HILOGD("%{public}s not find connection, make new one:%{public}p.", __func__, connection.GetRefPtr());
AsyncTask::CompleteCallback complete = [weak = context_, want, connection, connectId](
NativeEngine &engine, AsyncTask &task, int32_t status) {
PRINT_HILOGD("OnConnectAbility begin");
@ -330,7 +329,6 @@ private:
} else {
serialNumber_ = 0;
}
PRINT_HILOGD("%{public}s not find connection, make new one:%{public}p.", __func__, connection.GetRefPtr());
AsyncTask::CompleteCallback complete = [weak = context_, want, accountId, connection, connectId](
NativeEngine &engine, AsyncTask &task, int32_t status) {
PRINT_HILOGD("OnConnectAbilityWithAccount begin");
@ -377,7 +375,6 @@ private:
// match id
want = item->first.want;
connection = item->second;
PRINT_HILOGD("%{public}s find conn ability:%{public}p exist", __func__, item->second.GetRefPtr());
} else {
PRINT_HILOGD("%{public}s not find conn exist.", __func__);
}

View File

@ -456,7 +456,7 @@ napi_value NapiInnerPrint::Off(napi_env env, napi_callback_info info)
};
auto output = [context](napi_env env, napi_value *result) -> napi_status {
napi_status status = napi_get_boolean(env, context->result, result);
PRINT_HILOGD("context->result = %{public}d, result = %{public}p", context->result, result);
PRINT_HILOGD("context->result = %{public}d", context->result);
return status;
};
auto exec = [context](PrintAsyncCall::Context *ctx) {

View File

@ -155,7 +155,7 @@ napi_value PrintTask::Off(napi_env env, napi_callback_info info)
};
auto output = [context](napi_env env, napi_value *result) -> napi_status {
napi_status status = napi_get_boolean(env, context->result, result);
PRINT_HILOGD("context->result = %{public}d, result = %{public}p", context->result, result);
PRINT_HILOGD("context->result = %{public}d", context->result);
return status;
};
auto exec = [context](PrintAsyncCall::Context *ctx) {