diff --git a/ohos_interface/ohos_glue/base/bridge/ark_web_bridge_helper.cpp b/ohos_interface/ohos_glue/base/bridge/ark_web_bridge_helper.cpp index 6499c40ea6f0486d709eb8487ec1ce379500202c..adf7c9f8d1e0958bffcd9cb9da71a211161d5e84 100644 --- a/ohos_interface/ohos_glue/base/bridge/ark_web_bridge_helper.cpp +++ b/ohos_interface/ohos_glue/base/bridge/ark_web_bridge_helper.cpp @@ -39,7 +39,8 @@ bool ArkWebBridgeHelper::LoadLibFile(int openMode, const std::string& libFilePat void* libFileHandler = ::dlopen(libFilePath.c_str(), openMode); if (!libFileHandler) { if (isPrintLog) { - ARK_WEB_BRIDGE_ERROR_LOG("failed to load lib file %{public}s", libFilePath.c_str()); + ARK_WEB_BRIDGE_ERROR_LOG("failed to load lib file %{public}s,errno is %{public}d(%{public}s)", + libFilePath.c_str(), errno, dlerror()); } return false; @@ -69,7 +70,8 @@ bool ArkWebBridgeHelper::LoadLibFile(int openMode, const std::string& libNsName, if (!libFileHandler) { if (isPrintLog) { ARK_WEB_BRIDGE_ERROR_LOG( - "failed to load lib file %{public}s/%{public}s", libDirPath.c_str(), libFileName.c_str()); + "failed to load lib file %{public}s/%{public}s,errno is %{public}d(%{public}s)", + libDirPath.c_str(), libFileName.c_str(), errno, dlerror()); } return false; diff --git a/sa/src/app_fwk_update_client.cpp b/sa/src/app_fwk_update_client.cpp index c0304985c319314f0a7705b0680ce59cc95d5d32..3267f4d9275e8a0eeb5b3968925ab560ba4fd463 100644 --- a/sa/src/app_fwk_update_client.cpp +++ b/sa/src/app_fwk_update_client.cpp @@ -35,7 +35,7 @@ namespace OHOS::NWeb { namespace { -const int LOAD_SA_TIMEOUT_MS = 2 * 1000; +const int LOAD_SA_TIMEOUT_MS = 4 * 1000; const int FOUNDATION_UID = 5523; const std::set ARK_WEB_DEFAULT_BUNDLE_NAME_SET = { "com.ohos.nweb", "com.ohos.arkwebcore" }; } // namespace