diff --git a/interfaces/innerkits/appverify/include/common/hap_verify_log.h b/interfaces/innerkits/appverify/include/common/hap_verify_log.h index c1c430b1c7a460b0ca018357b83b35a056e224e8..0ce47109ac6b8744bf67421b100ff8846feb0e80 100644 --- a/interfaces/innerkits/appverify/include/common/hap_verify_log.h +++ b/interfaces/innerkits/appverify/include/common/hap_verify_log.h @@ -21,8 +21,8 @@ namespace OHOS { namespace Security { namespace Verify { -static constexpr uint32_t SECURITY_DOMAIN = 0xD002F00; -static constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, SECURITY_DOMAIN, "HapVerify"}; +static constexpr uint32_t APPVERIFY_DOMAIN = 0xD001120; +static constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, APPVERIFY_DOMAIN, "HapVerify"}; #define HAPVERIFY_LOG_DEBUG(label, fmt, ...) \ OHOS::HiviewDFX::HiLog::Debug(label, "%{public}s: " fmt, __func__, ##__VA_ARGS__) diff --git a/interfaces/innerkits/appverify/src/util/hap_profile_verify_utils.cpp b/interfaces/innerkits/appverify/src/util/hap_profile_verify_utils.cpp index 129e0107e187f3d4aee6778a890f580ae3398c6e..8973384ecf841d58527d74fd79c6e32077d036e2 100644 --- a/interfaces/innerkits/appverify/src/util/hap_profile_verify_utils.cpp +++ b/interfaces/innerkits/appverify/src/util/hap_profile_verify_utils.cpp @@ -73,7 +73,7 @@ bool HapProfileVerifyUtils::VerifyProfile(Pkcs7Context& pkcs7Context) certSubject.c_str(), certIssuer.c_str()); return false; } - HAPVERIFY_LOG_INFO(LABEL, "profile subject: %{public}s, issuer: %{public}s", + HAPVERIFY_LOG_DEBUG(LABEL, "profile subject: %{public}s, issuer: %{public}s", certSubject.c_str(), certIssuer.c_str()); return true; } diff --git a/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp b/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp index dfa7398440757eff41ab1df6270ca5f37a64a50b..ae2af2e6a7f5b4cb93c664df1dd55be75fdd08ef 100644 --- a/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp +++ b/interfaces/innerkits/appverify/src/verify/hap_verify_v2.cpp @@ -151,7 +151,7 @@ bool HapVerifyV2::VerifyAppSourceAndParseProfile(Pkcs7Context& pkcs7Context, HAPVERIFY_LOG_ERROR(LABEL, "Get info of sign cert failed"); return false; } - HAPVERIFY_LOG_INFO(LABEL, "App signature subject: %{public}s, issuer: %{public}s", + HAPVERIFY_LOG_DEBUG(LABEL, "App signature subject: %{public}s, issuer: %{public}s", certSubject.c_str(), pkcs7Context.certIssuer.c_str()); TrustedSourceManager& trustedSourceManager = TrustedSourceManager::GetInstance();