Dispatcher: Provide some INFO-level connection messages.

This commit is contained in:
Peter Johnson
2015-07-31 23:26:38 -07:00
parent 06e8d835dd
commit c2eb4a766e

View File

@@ -199,7 +199,8 @@ void Dispatcher::ServerThreadMain(const char* listen_address,
m_active = false;
break;
}
DEBUG("server got a connection");
DEBUG("server: client connection from " << stream->getPeerIP() << " port "
<< stream->getPeerPort());
// add to connections list
using namespace std::placeholders;
@@ -317,6 +318,8 @@ bool Dispatcher::ClientHandshake(
if (!outgoing.empty()) send_msgs(outgoing);
INFO("client: CONNECTED to server " << conn.stream().getPeerIP() << " port "
<< conn.stream().getPeerPort());
return true;
}
@@ -395,6 +398,8 @@ bool Dispatcher::ServerHandshake(
for (auto& msg : incoming) storage.ProcessIncoming(msg, &conn, proto_rev);
}
INFO("server: client CONNECTED: " << conn.stream().getPeerIP() << " port "
<< conn.stream().getPeerPort());
return true;
}