summaryrefslogtreecommitdiff
path: root/redfish-core/lib/log_services.hpp
diff options
context:
space:
mode:
authorJames Feist <james.feist@linux.intel.com>2020-03-13 02:32:08 +0300
committerJames Feist <james.feist@linux.intel.com>2020-03-17 19:33:52 +0300
commitfe30672809d9dcf83f6cab821d02650b250664b9 (patch)
treefafba78ccfd37847fe927057c30213979bbff46e /redfish-core/lib/log_services.hpp
parentf857e9ae6f6e7d567462f32cb5d9d3a7b581535e (diff)
downloadbmcweb-fe30672809d9dcf83f6cab821d02650b250664b9.tar.xz
Task: Add payload support
This adds the payload values to task responses. Tested: passed validator Change-Id: I50467e28ce8142d198f916ea0c63bd413edcd524 Signed-off-by: James Feist <james.feist@linux.intel.com>
Diffstat (limited to 'redfish-core/lib/log_services.hpp')
-rw-r--r--redfish-core/lib/log_services.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp
index fd414aa331..b7fe62ccc3 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -1850,10 +1850,10 @@ class OnDemandCrashdump : public Node
{
std::shared_ptr<AsyncResp> asyncResp = std::make_shared<AsyncResp>(res);
- auto generateonDemandLogCallback = [asyncResp](
- const boost::system::error_code
- ec,
- const std::string &resp) {
+ auto generateonDemandLogCallback = [asyncResp,
+ req](const boost::system::error_code
+ ec,
+ const std::string &resp) {
if (ec)
{
if (ec.value() == boost::system::errc::operation_not_supported)
@@ -1887,6 +1887,7 @@ class OnDemandCrashdump : public Node
"crashdump'");
task->startTimer(std::chrono::minutes(5));
task->populateResp(asyncResp->res);
+ task->payload.emplace(req);
};
crow::connections::systemBus->async_method_call(
std::move(generateonDemandLogCallback), crashdumpObject,