remove phosphor-logging dependency
This commit removes pldm's dependency on phosphor-logging
and instead uses stdout and stdcerr for logging purpose.This is to
break the build time circular dependency between pldm and
phosphor-logging.
Change-Id: I8cffa3c99eb34efad5f186b3452a86ebadec2074
Signed-off-by: Sampa Misra <sampmisr@in.ibm.com>
diff --git a/oem/ibm/libpldmresponder/file_table.cpp b/oem/ibm/libpldmresponder/file_table.cpp
index 9264f21..4b3198c 100644
--- a/oem/ibm/libpldmresponder/file_table.cpp
+++ b/oem/ibm/libpldmresponder/file_table.cpp
@@ -2,7 +2,7 @@
#include <boost/crc.hpp>
#include <fstream>
-#include <phosphor-logging/log.hpp>
+#include <iostream>
namespace pldm
{
@@ -10,22 +10,21 @@
namespace filetable
{
-using namespace phosphor::logging;
-
FileTable::FileTable(const std::string& fileTableConfigPath)
{
std::ifstream jsonFile(fileTableConfigPath);
if (!jsonFile.is_open())
{
- log<level::ERR>("File table config file does not exist",
- entry("FILE=%s", fileTableConfigPath.c_str()));
+ std::cerr << "File table config file does not exist, FILE="
+ << fileTableConfigPath.c_str() << "\n";
return;
}
auto data = Json::parse(jsonFile, nullptr, false);
if (data.is_discarded())
{
- log<level::ERR>("Parsing config file failed");
+ std::cerr << "Parsing config file failed"
+ << "\n";
return;
}