Remove unnecessary logs
Change-Id: Ib537f58bc7d5ec5efdada2243952bb868d99ffa1
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/main.cpp b/main.cpp
index 4e1dbe8..c580adc 100644
--- a/main.cpp
+++ b/main.cpp
@@ -51,7 +51,6 @@
//or processing of request then handle the error.
if (rc)
{
- std::cerr << "SLP Error rc=" << rc << "\n";
resp = slp::handler::processError(req, rc);
}
diff --git a/sock_channel.cpp b/sock_channel.cpp
index 667fbc2..fe492db 100644
--- a/sock_channel.cpp
+++ b/sock_channel.cpp
@@ -48,15 +48,8 @@
&address.sockAddr, // Address
&address.addrSize); // Address Length
- if (readDataLen > 0) // Data read from the socket
+ if (readDataLen == 0) // Peer has performed an orderly shutdown
{
- std::cout << "Channel::Read : DataIn Fd[" << sockfd << "] Req["
- << bufferSize << "] Recv[" << readDataLen << "]\n";
- }
- else if (readDataLen == 0) // Peer has performed an orderly shutdown
- {
- std::cerr << "Channel::Read : Connection Closed Fd[" << sockfd
- << "]\n";
outBuffer.resize(0);
rc = -1;
}