From e8428fa68977f5378c8b678dc375199c89186bd9 Mon Sep 17 00:00:00 2001 From: yuanyulu Date: Wed, 25 Oct 2023 10:11:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=BE=93=E5=87=BA=E7=AD=89=E7=BA=A7=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=20Signed-off-by:yuanyulu@huawei.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yuanyulu --- frameworks/helper/src/print_margin_helper.cpp | 2 +- frameworks/helper/src/print_page_size_helper.cpp | 2 +- frameworks/helper/src/print_range_helper.cpp | 2 +- frameworks/helper/src/printer_capability_helper.cpp | 2 +- .../src/print_extension_callback_stub.cpp | 8 ++++---- services/src/print_bms_helper.cpp | 2 +- services/src/print_service_ability.cpp | 10 +++++----- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/frameworks/helper/src/print_margin_helper.cpp b/frameworks/helper/src/print_margin_helper.cpp index a4dca7bc..005f0ee4 100644 --- a/frameworks/helper/src/print_margin_helper.cpp +++ b/frameworks/helper/src/print_margin_helper.cpp @@ -74,7 +74,7 @@ std::shared_ptr PrintMarginHelper::BuildFromJs(napi_env env, napi_v nativeObj->SetRight(NapiPrintUtils::GetUint32FromValue(env, jsRight)); } - PRINT_HILOGE("Build Print Margin succeed"); + PRINT_HILOGI("Build Print Margin succeed"); return nativeObj; } diff --git a/frameworks/helper/src/print_page_size_helper.cpp b/frameworks/helper/src/print_page_size_helper.cpp index 247ec22a..ef79e444 100644 --- a/frameworks/helper/src/print_page_size_helper.cpp +++ b/frameworks/helper/src/print_page_size_helper.cpp @@ -58,7 +58,7 @@ std::shared_ptr PrintPageSizeHelper::BuildFromJs(napi_env env, na nativeObj->SetName(name); nativeObj->SetWidth(width); nativeObj->SetHeight(height); - PRINT_HILOGE("Build Page Size succeed"); + PRINT_HILOGI("Build Page Size succeed"); return nativeObj; } diff --git a/frameworks/helper/src/print_range_helper.cpp b/frameworks/helper/src/print_range_helper.cpp index ece32d86..790e355d 100644 --- a/frameworks/helper/src/print_range_helper.cpp +++ b/frameworks/helper/src/print_range_helper.cpp @@ -97,7 +97,7 @@ std::shared_ptr PrintRangeHelper::BuildFromJs(napi_env env, napi_val nativeObj->SetPages(pages); } - PRINT_HILOGE("Build Page Range succeed"); + PRINT_HILOGI("Build Page Range succeed"); return nativeObj; } diff --git a/frameworks/helper/src/printer_capability_helper.cpp b/frameworks/helper/src/printer_capability_helper.cpp index 4fe708c6..4aa7c4bf 100644 --- a/frameworks/helper/src/printer_capability_helper.cpp +++ b/frameworks/helper/src/printer_capability_helper.cpp @@ -93,7 +93,7 @@ std::shared_ptr PrinterCapabilityHelper::BuildFromJs(napi_env if (jsOption != nullptr) { nativeObj->SetOption(NapiPrintUtils::GetStringPropertyUtf8(env, jsValue, PARAM_CAPABILITY_OPTION)); } - PRINT_HILOGE("Build Print Capability succeed"); + PRINT_HILOGI("Build Print Capability succeed"); return BuildFromJsSecond(env, jsValue, jsPageSizes, nativeObj); } diff --git a/frameworks/innerkitsimpl/src/print_extension_callback_stub.cpp b/frameworks/innerkitsimpl/src/print_extension_callback_stub.cpp index 04db628e..7a85ba8c 100644 --- a/frameworks/innerkitsimpl/src/print_extension_callback_stub.cpp +++ b/frameworks/innerkitsimpl/src/print_extension_callback_stub.cpp @@ -107,7 +107,7 @@ void PrintExtensionCallbackStub::SetCapabilityCallback(PrinterCapabilityCallback bool PrintExtensionCallbackStub::HandleExtCallback(MessageParcel &data, MessageParcel &reply) { bool result = OnCallback(); - PRINT_HILOGE("Handle Print Extension Callback ret[%{public}d]", result); + PRINT_HILOGI("Handle Print Extension Callback ret[%{public}d]", result); reply.WriteBool(result); return result; } @@ -116,7 +116,7 @@ bool PrintExtensionCallbackStub::HandlePrinterCallback(MessageParcel &data, Mess { std::string printerId = data.ReadString(); bool result = OnCallback(printerId); - PRINT_HILOGE("Handle Printer Extension Callback ret[%{public}d]", result); + PRINT_HILOGI("Handle Printer Extension Callback ret[%{public}d]", result); reply.WriteBool(result); return result; } @@ -127,7 +127,7 @@ bool PrintExtensionCallbackStub::HandlePrintJobCallback(MessageParcel &data, Mes bool result = false; if (printJobPtr != nullptr) { result = OnCallback(*printJobPtr); - PRINT_HILOGE("Handle Print Job Extension Callback ret[%{public}d]", result); + PRINT_HILOGI("Handle Print Job Extension Callback ret[%{public}d]", result); reply.WriteBool(result); } return result; @@ -138,7 +138,7 @@ bool PrintExtensionCallbackStub::HandleCapabilityCallback(MessageParcel &data, M std::string printerId = data.ReadString(); PrinterCapability cap; bool result = OnCallback(printerId, cap); - PRINT_HILOGE("Handle Printer Capability Extension Callback ret[%{public}d]", result); + PRINT_HILOGI("Handle Printer Capability Extension Callback ret[%{public}d]", result); reply.WriteBool(result); cap.Marshalling(reply); return result; diff --git a/services/src/print_bms_helper.cpp b/services/src/print_bms_helper.cpp index 5c5d0cb5..1f83b27f 100644 --- a/services/src/print_bms_helper.cpp +++ b/services/src/print_bms_helper.cpp @@ -45,7 +45,7 @@ bool PrintBMSHelper::QueryExtensionInfos(std::vectorQueryExtension(sptrBundleMgr_, userId, extensionInfos); } return true; diff --git a/services/src/print_service_ability.cpp b/services/src/print_service_ability.cpp index 6acf58e0..86c15d76 100644 --- a/services/src/print_service_ability.cpp +++ b/services/src/print_service_ability.cpp @@ -132,7 +132,7 @@ int32_t PrintServiceAbility::Init() g_publishState = true; } state_ = ServiceRunningState::STATE_RUNNING; - PRINT_HILOGE("state_ is %{public}d.", static_cast(state_)); + PRINT_HILOGI("state_ is %{public}d.", static_cast(state_)); PRINT_HILOGI("Init PrintServiceAbility success."); return ERR_OK; } @@ -233,7 +233,7 @@ int32_t PrintServiceAbility::CallSpooler(const std::vector &fileLis { ManualStart(); if (!CheckPermission(PERMISSION_NAME_PRINT)) { - PRINT_HILOGD("no permission to access print service, ErrorCode:[%{public}d]", E_PRINT_NO_PERMISSION); + PRINT_HILOGE("no permission to access print service, ErrorCode:[%{public}d]", E_PRINT_NO_PERMISSION); return E_PRINT_NO_PERMISSION; } PRINT_HILOGD("PrintServiceAbility StartPrint started."); @@ -292,7 +292,7 @@ int32_t PrintServiceAbility::CallSpooler(const std::vector &fileLis { ManualStart(); if (!CheckPermission(PERMISSION_NAME_PRINT)) { - PRINT_HILOGD("no permission to access print service, ErrorCode:[%{public}d]", E_PRINT_NO_PERMISSION); + PRINT_HILOGE("no permission to access print service, ErrorCode:[%{public}d]", E_PRINT_NO_PERMISSION); return E_PRINT_NO_PERMISSION; } PRINT_HILOGD("PrintServiceAbility StartPrint started."); @@ -560,7 +560,7 @@ int32_t PrintServiceAbility::QueryAllExtension(std::vector & extensionList_.insert(std::make_pair(printExtInfo.GetExtensionId(), extInfo)); extensionStateList_.insert(std::make_pair(printExtInfo.GetExtensionId(), PRINT_EXTENSION_UNLOAD)); } - PRINT_HILOGE("QueryAllExtension End."); + PRINT_HILOGI("QueryAllExtension End."); return E_PRINT_NONE; } @@ -603,7 +603,7 @@ int32_t PrintServiceAbility::QueryPrintJobById(std::string &printJobId, PrintJob } else { printJob = *jobIt->second; } - PRINT_HILOGE("QueryPrintJobById End."); + PRINT_HILOGI("QueryPrintJobById End."); return E_PRINT_NONE; } -- Gitee