gbmc-release-24.1.x: Replace postDbusCallToIoContext with pure dbus call
Change-Id: I0fbc930667a4b5a4747d7b55d9e9866a9660b2e3
Signed-off-by: Munawar Hussain <munawarhussain@google.com>
diff --git a/redfish-core/lib/log_services.cpp b/redfish-core/lib/log_services.cpp
index fe0ef54..802dbfe 100644
--- a/redfish-core/lib/log_services.cpp
+++ b/redfish-core/lib/log_services.cpp
@@ -5142,7 +5142,7 @@
const std::function<void(const nlohmann::json& logEntryArray)>&
successCallback)
{
- managedStore::GetManagedObjectStore()->postDbusCallToIoContext(
+ crow::connections::systemBus->async_method_call(
[aResp, parentODataId, specificIndex,
successCb{std::move(successCallback)}](
const boost::system::error_code& ec,
@@ -5215,7 +5215,7 @@
const std::function<void(const nlohmann::json& logEntryArray)>&
successCallback)
{
- managedStore::GetManagedObjectStore()->postDbusCallToIoContext(
+ crow::connections::systemBus->async_method_call(
[aResp, parentODataId, specificIndex,
successCb{std::move(successCallback)}](
const boost::system::error_code& ec,