aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-11-12 17:41:53 -0500
committerDeterminant <[email protected]>2018-11-12 17:41:53 -0500
commit7645971cd6e21ebcf5dd1800bb1f1393284ee0c9 (patch)
tree58f4f4810919aa7f6387f94367ab8151ce8d9c99 /src
parent7387f7f6b615717dd863bcb62ee7f65ace29879b (diff)
debug p2p impl
Diffstat (limited to 'src')
-rw-r--r--src/conn.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conn.cpp b/src/conn.cpp
index edbe9f3..7b7c699 100644
--- a/src/conn.cpp
+++ b/src/conn.cpp
@@ -66,7 +66,7 @@ void ConnPool::Conn::send_data(evutil_socket_t fd, short events) {
send_buffer.rewind(std::move(buff_seg));
if (ret < 0 && errno != EWOULDBLOCK)
{
- SALTICIDAE_LOG_INFO("reason: %s", strerror(errno));
+ SALTICIDAE_LOG_INFO("send(%d) failure: %s", fd, strerror(errno));
terminate();
return;
}
@@ -98,7 +98,7 @@ void ConnPool::Conn::recv_data(evutil_socket_t fd, short events) {
if (ret < 0)
{
if (errno == EWOULDBLOCK) break;
- SALTICIDAE_LOG_INFO("reason: %s", strerror(errno));
+ SALTICIDAE_LOG_INFO("recv(%d) failure: %s", fd, strerror(errno));
/* connection err or half-opened connection */
terminate();
return;