Reduced excessive logging to the journal.
Fixes openbmc/openbmc#983
Change-Id: If52055feca8f965162948bd7af710da3ea9257d2
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/slp_message_handler.cpp b/slp_message_handler.cpp
index 5fd3e38..14ed15f 100644
--- a/slp_message_handler.cpp
+++ b/slp_message_handler.cpp
@@ -90,6 +90,7 @@
if (svcList.size() <= 0)
{
buff.resize(0);
+ std::cerr << "SLP unable to read the service info\n";
return std::make_tuple((int)slp::Error::INTERNAL_ERROR, buff);
}
@@ -181,6 +182,7 @@
if (svcList.size() <= 0)
{
buff.resize(0);
+ std::cerr << "SLP unable to read the service info\n";
return std::make_tuple((int)slp::Error::INTERNAL_ERROR, buff);
}
@@ -190,6 +192,7 @@
if (svcIt == svcList.end())
{
buff.resize(0);
+ std::cerr << "SLP unable to find the service=" << svcName << "\n";
return std::make_tuple((int)slp::Error::INTERNAL_ERROR, buff);
}
//Get all the interface address
@@ -197,6 +200,7 @@
if (ifaddrList.size() <= 0)
{
buff.resize(0);
+ std::cerr << "SLP unable to read the interface address\n";
return std::make_tuple((int)slp::Error::INTERNAL_ERROR, buff);
}
@@ -363,6 +367,9 @@
buffer resp(0);
switch (msg.header.functionID)
{
+ std::cout << "SLP Processing Request="
+ << msg.header.functionID <<"\n";
+
case (uint8_t)slp::FunctionType::SRVTYPERQST:
std::tie(rc, resp) = slp::handler::internal::processSrvTypeRequest(msg);
break;