diff --git a/frameworks/helper/src/print_margin_helper.cpp b/frameworks/helper/src/print_margin_helper.cpp index a4dca7bc47de494b0b2c7ab41c973427f9fa0866..005f0ee401b5e90b08dbb55bc32929c81069682a 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 247ec22a91929be091f0304273c4e5bd9dab2ff4..ef79e4446d1187a31ee7fe33d8a0608f8aeb9aa5 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 ece32d86181fe10214ffd0a9848922ba65e434df..790e355d5209a0fb24d12da2bf0a58811870744f 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 4fe708c637ff53ef9fc3b8af4c5a535072f9c429..4aa7c4bf9be3a1ed88c14d760d7763d127987a5d 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 04db628ea551be891eda036032cdbe83493dd347..7a85ba8c29996e9f1cc980c865f5692530ebcd97 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 5c5d0cb53b556cae62358cc11bbf15d6cfe8fca0..1f83b27f224e09964dd40c0c1ff63bea951d7136 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 6acf58e0c4b6608be7cf80817727d81dec6646be..86c15d766adf77391ba552bb21784fb455fabc1a 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; }