diff --git a/services/native/file_access_service/src/file_access_service.cpp b/services/native/file_access_service/src/file_access_service.cpp index 93828f42..1b76afee 100644 --- a/services/native/file_access_service/src/file_access_service.cpp +++ b/services/native/file_access_service/src/file_access_service.cpp @@ -796,13 +796,9 @@ void FileAccessService::RemoveAppProxy(const sptr& co return; } size_t key = reinterpret_cast(connection->AsObject().GetRefPtr()); - if (appProxyMap_.find(key) == appProxyMap_.end()) { - HILOG_WARN("appProxyMap_ not key: %{public}zu", key); - return; - } lock_guard lock(appProxyMutex_); if (appProxyMap_.find(key) == appProxyMap_.end()) { - HILOG_INFO("appProxyMap_ not key"); + HILOG_INFO("appProxyMap_ not key %{public}zu", key); return; }