clarify some client/server connection log messages

This commit is contained in:
Michael Davidsaver
2022-01-24 10:43:13 -08:00
parent 45a4bc8f05
commit dfb8b953fb
+3 -3
View File
@@ -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();
}