Remove references to LOG_TRIVIAL.

This commit is contained in:
Arthur Britto
2012-06-13 23:35:45 -07:00
parent 26ef51463d
commit 8264fc1d1a
5 changed files with 6 additions and 9 deletions

View File

@@ -127,7 +127,6 @@ void Application::run()
// temporary
mIOService.run(); // This blocks
//BOOST_LOG_TRIVIAL(info) << "Done.";
std::cout << "Done." << std::endl;
}

View File

@@ -221,7 +221,6 @@ void Peer::connected(const boost::system::error_code& error)
// Not redundant ip and port, add to connection list.
std::cerr << "Remote peer: accepted: " << strIp << " " << iPort << std::endl;
//BOOST_LOG_TRIVIAL(info) << "Connected to Peer.";
mIpPort = make_pair(strIp, iPort);
assert(!mIpPort.first.empty());
@@ -293,7 +292,7 @@ void Peer::handle_read_header(const boost::system::error_code& error)
else
{
detach("hrh2");
std::cerr << "Peer::handle_read_header: Error: " << error << std::endl; //else BOOST_LOG_TRIVIAL(info) << "Error: " << error;
std::cerr << "Peer::handle_read_header: Error: " << error << std::endl;
}
}
@@ -307,7 +306,7 @@ void Peer::handle_read_body(const boost::system::error_code& error)
else
{
detach("hrb");
std::cerr << "Peer::handle_read_body: Error: " << error << std::endl; //else BOOST_LOG_TRIVIAL(info) << "Error: " << error;
std::cerr << "Peer::handle_read_body: Error: " << error << std::endl;
}
}
@@ -336,7 +335,7 @@ void Peer::processReadBuffer()
newcoin::TMHello msg;
if(msg.ParseFromArray(&mReadbuf[HEADER_SIZE], mReadbuf.size() - HEADER_SIZE))
recvHello(msg);
else std::cerr << "parse error: " << type << std::endl; //else BOOST_LOG_TRIVIAL(info) << "Error: " << error;
else std::cerr << "parse error: " << type << std::endl;
}
break;
@@ -511,7 +510,7 @@ void Peer::processReadBuffer()
break;
default:
std::cerr << "Unknown Msg: " << type << std::endl; //else BOOST_LOG_TRIVIAL(info) << "Error: " << error;
std::cerr << "Unknown Msg: " << type << std::endl;
}
}
}

View File

@@ -54,7 +54,7 @@ void PeerDoor::handleConnect(Peer::pointer new_connection,
{
new_connection->connected(error);
}
else cout << "Error: " << error; // BOOST_LOG_TRIVIAL(info) << "Error: " << error;
else cout << "Error: " << error;
startListening();
}

View File

@@ -45,7 +45,7 @@ void RPCDoor::handleConnect(RPCServer::pointer new_connection,
new_connection->connected();
}
else cout << "Error: " << error;//BOOST_LOG_TRIVIAL(info) << "Error: " << error;
else cout << "Error: " << error;
startListening();
}

View File

@@ -101,7 +101,6 @@ Json::Value RPCServer::RPCError(int iError)
void RPCServer::connected()
{
//BOOST_LOG_TRIVIAL(info) << "RPC request";
std::cout << "RPC request" << std::endl;
mSocket.async_read_some(boost::asio::buffer(mReadBuffer),