mirror of
https://gitee.com/openharmony/print_print_fwk
synced 2024-11-27 11:00:39 +00:00
address logs are not printed
Signed-off-by: wangfeifan <wangfeifan2@huawei.com>
This commit is contained in:
parent
21ecc66cee
commit
181f5e0eb0
@ -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 *) {
|
||||
|
@ -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__);
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user