From 5ffd11f248f155614bf30b498cb01a4e2065094d Mon Sep 17 00:00:00 2001 From: Gunnar Mills Date: Thu, 2 May 2024 08:26:12 -0500 Subject: 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 --- redfish-core/lib/log_services.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"] = -- cgit v1.2.3