diff --git a/services/local_code_sign/src/local_sign_key.cpp b/services/local_code_sign/src/local_sign_key.cpp index 738ead5b154e95653ea8e878a7f06ea29b15e8f0..4d4fcd5a036c2ae986cc6ee863075c0cf8579b27 100644 --- a/services/local_code_sign/src/local_sign_key.cpp +++ b/services/local_code_sign/src/local_sign_key.cpp @@ -121,9 +121,10 @@ bool LocalSignKey::UpdateKey() } int32_t ret = HksKeyExist(&LOCAL_SIGN_KEY_ALIAS, paramSet.GetParamSet()); if (ret == HKS_ERROR_NOT_EXIST) { + LOG_INFO("The key does not exist, update the key, ret is %{public}d!", ret); sptr bundleMgr = Connect(); if (bundleMgr == nullptr) { - LOG_ERROR("get bundleMgr failed"); + LOG_ERROR("Get bundleMgr failed"); return false; } int32_t result = bundleMgr->ResetAllAOT(); @@ -132,6 +133,7 @@ bool LocalSignKey::UpdateKey() return false; } if (!GenerateKey()) { + LOG_ERROR("GenerateKey fail."); return false; } } else if (ret != HKS_SUCCESS) {