Change message_registries namespace to registries
The message_registries namespace is overly wordy, and results in very
long defines. Doing this one minor change reduces the code by 50 lines.
This seems worthwhile.
Tested: Unit tests pass. Namespace change only.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Ib1401580b3fa47596eb56cdc86e60eeeb1c2f952
diff --git a/redfish-core/lib/log_services.hpp b/redfish-core/lib/log_services.hpp
index 59ebf51..5a27fe9 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -56,7 +56,7 @@
constexpr char const* crashdumpTelemetryInterface =
"com.intel.crashdump.Telemetry";
-namespace message_registries
+namespace registries
{
static const Message*
getMessageFromRegistry(const std::string& messageKey,
@@ -99,7 +99,7 @@
}
return nullptr;
}
-} // namespace message_registries
+} // namespace registries
namespace fs = std::filesystem;
@@ -1117,8 +1117,7 @@
std::string& messageID = logEntryFields[0];
// Get the Message from the MessageRegistry
- const message_registries::Message* message =
- message_registries::getMessage(messageID);
+ const registries::Message* message = registries::getMessage(messageID);
std::string msg;
std::string severity;
@@ -3101,8 +3100,8 @@
const uint64_t skip = 0, const uint64_t top = 0)
{
// Get the Message from the MessageRegistry
- const message_registries::Message* message =
- message_registries::getMessage("OpenBMC.0.2.BIOSPOSTCode");
+ const registries::Message* message =
+ registries::getMessage("OpenBMC.0.2.BIOSPOSTCode");
uint64_t currentCodeIndex = 0;
nlohmann::json& logEntryArray = aResp->res.jsonValue["Members"];