diff options
-rw-r--r-- | redfish-core/lib/log_services.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp index 0a1686674e..6fee6edd00 100644 --- a/redfish-core/lib/log_services.hpp +++ b/redfish-core/lib/log_services.hpp @@ -1289,7 +1289,7 @@ inline void requestRoutesJournalEventLogEntry(App& app) messages::internalError(asyncResp->res); return; } - asyncResp->res.jsonValue = std::move(bmcLogEntry); + asyncResp->res.jsonValue.update(bmcLogEntry); return; } } @@ -2315,7 +2315,7 @@ inline void requestRoutesBMCJournalLogEntry(App& app) messages::internalError(asyncResp->res); return; } - asyncResp->res.jsonValue = std::move(bmcJournalLogEntry); + asyncResp->res.jsonValue.update(bmcJournalLogEntry); }); } @@ -2801,7 +2801,7 @@ static void } else { - logEntryJson = logEntry; + logEntryJson.update(logEntry); } }; crow::connections::systemBus->async_method_call( |