diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/conn.cpp | 4 |
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; |