diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2024-05-02 16:26:12 +0300 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2024-05-02 16:30:29 +0300 |
commit | 5ffd11f248f155614bf30b498cb01a4e2065094d (patch) | |
tree | 376d5a35e9e5fe46c8b3cdd8448ae0e56eb082c4 | |
parent | 36a59eafed32c0063d444fc0722f899c0024092d (diff) | |
download | bmcweb-5ffd11f248f155614bf30b498cb01a4e2065094d.tar.xz |
Fix regression in CrashDump
25b54db introduced a bug where CrashDump was not looking at the correct
option. Was using BMCWEB_REDFISH_DUMP_LOG instead of the correct
BMCWEB_REDFISH_CPU_LOG.
This was caught in CI by a system that doesn't have CrashDump enabled
but was hitting:
1 failGet errors in /redfish/v1/Systems/system/LogServices/Crashdump
Tested: None. Visually inspected and this matches
redfish-core/src/redfish.cpp.
Change-Id: Ia6e72e5bbeaaa246fbbc5bcb2a525062e63d7d29
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r-- | redfish-core/lib/log_services.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp index 1453a4b11f..058852c62c 100644 --- a/redfish-core/lib/log_services.hpp +++ b/redfish-core/lib/log_services.hpp @@ -1313,7 +1313,7 @@ inline void requestRoutesSystemLogServiceCollection(App& app) logServiceArray.emplace_back(std::move(dumpLog)); } - if constexpr (BMCWEB_REDFISH_DUMP_LOG) + if constexpr (BMCWEB_REDFISH_CPU_LOG) { nlohmann::json::object_t crashdump; crashdump["@odata.id"] = |