Port phosphor::logging to lg2
Added patch which ports all the phosphor::log to lg2
Tested:
1) No crash is seen when smbios-mdr is loaded
Change-Id: If6d1f24eb34be7370382c18b76eff7897e305226
Signed-off-by: Prithvi Pai <ppai@nvidia.com>
diff --git a/src/system.cpp b/src/system.cpp
index 7a37263..b3e58bd 100644
--- a/src/system.cpp
+++ b/src/system.cpp
@@ -136,13 +136,12 @@
std::ofstream smbiosFile(smbiosFilePath, std::ios_base::trunc);
if (!smbiosFile.good())
{
- phosphor::logging::log<phosphor::logging::level::ERR>(
- "Open MDRV2 table file failure");
+ lg2::error("Open MDRV2 table file failure");
return result;
}
smbiosFile.clear();
smbiosFile.close();
- phosphor::logging::log<phosphor::logging::level::ERR>(
+ lg2::error(
"Find non-print char, delete the broken MDRV2 table file!");
return sdbusplus::server::xyz::openbmc_project::inventory::
decorator::Revision::version(result);