log error code message

This commit is contained in:
badaix 2015-12-07 23:45:12 +01:00
parent 884a65f289
commit ffa823bb31
4 changed files with 7 additions and 10 deletions

View file

@ -92,9 +92,9 @@ void ClientConnection::stop()
if (socket_)
{
socket_->shutdown(asio::ip::tcp::socket::shutdown_both, ec);
if (ec) logE << "Error in socket shutdown: " << ec << endl;
if (ec) logE << "Error in socket shutdown: " << ec.message() << endl;
socket_->close(ec);
if (ec) logE << "Error in socket close: " << ec << endl;
if (ec) logE << "Error in socket close: " << ec.message() << endl;
}
if (readerThread_)
{