clarify some client/server connection log messages
This commit is contained in:
+3
-3
@@ -82,13 +82,13 @@ void ConnBase::bevEvent(short events)
|
||||
if(events&BEV_EVENT_ERROR) {
|
||||
int err = EVUTIL_SOCKET_ERROR();
|
||||
const char *msg = evutil_socket_error_to_string(err);
|
||||
log_err_printf(connio, "%s %s connection closed with socket error %d : %s\n", peerLabel(), peerName.c_str(), err, msg);
|
||||
log_err_printf(connio, "connection to %s %s closed with socket error %d : %s\n", peerLabel(), peerName.c_str(), err, msg);
|
||||
}
|
||||
if(events&BEV_EVENT_EOF) {
|
||||
log_debug_printf(connio, "%s %s connection closed by peer\n", peerLabel(), peerName.c_str());
|
||||
log_debug_printf(connio, "connection to %s %s closed by peer\n", peerLabel(), peerName.c_str());
|
||||
}
|
||||
if(events&BEV_EVENT_TIMEOUT) {
|
||||
log_warn_printf(connio, "%s %s connection timeout\n", peerLabel(), peerName.c_str());
|
||||
log_warn_printf(connio, "connection to %s %s timeout\n", peerLabel(), peerName.c_str());
|
||||
}
|
||||
bev.reset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user