From 7645971cd6e21ebcf5dd1800bb1f1393284ee0c9 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 12 Nov 2018 17:41:53 -0500 Subject: debug p2p impl --- src/conn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2