!44 告警清理

Merge pull request !44 from 王毅/master
This commit is contained in:
openharmony_ci 2024-08-19 13:33:58 +00:00 committed by Gitee
commit 73850cd05f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ namespace {
constexpr int32_t TWO_ARGS = 2;
constexpr int32_t TIMEOUT_REPLY = 10000;
const std::string REPORT_PERMISSION = "ohos.permission.securityguard.REPORT_SECURITY_INFO";
const std::string REPORT_PERMISSION_NEW = "ohos.permission.REPORT_SECURITY_INFO";
const std::string REPORT_PERMISSION_NEW = "ohos.permission.REPORT_SECURITY_EVENT";
const std::string REQUEST_PERMISSION = "ohos.permission.securityguard.REQUEST_SECURITY_EVENT_INFO";
const std::string MANAGE_CONFIG_PERMISSION = "ohos.permission.MANAGE_SECURITY_GUARD_CONFIG";
const std::string QUERY_SECURITY_EVENT_PERMISSION = "ohos.permission.QUERY_SECURITY_EVENT";

View File

@ -83,7 +83,7 @@ int32_t SecurityCollectorManagerService::Subscribe(const SecurityCollectorSubscr
const sptr<IRemoteObject> &callback)
{
Event event = subscribeInfo.GetEvent();
LOGI("in subscribe, subscribinfo: duration:%{public}" PRId64 ", isNotify:%{public}d, eventid:%{public}" PRId64 ", \n"
LOGI("in subscribe, subscribinfo: duration:%{public}" PRId64 ", isNotify:%{public}d, eventid:%{public}" PRId64 ",\n"
"version:%{public}s, extra:%{public}s", subscribeInfo.GetDuration(), (int)subscribeInfo.IsNotify(),
event.eventId, event.version.c_str(), event.extra.c_str());
int32_t ret = HasPermission(REPORT_PERMISSION);