From c4ce16649f3eccd2e02a918a34251cd9f0f1a437 Mon Sep 17 00:00:00 2001 From: Determinant Date: Sat, 22 Feb 2020 14:42:43 -0500 Subject: ... --- src/conn.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/conn.cpp b/src/conn.cpp index af15276..85f9530 100644 --- a/src/conn.cpp +++ b/src/conn.cpp @@ -73,7 +73,7 @@ void ConnPool::Conn::_send_data(const conn_t &conn, int fd, int events) { ssize_t size = buff_seg.size(); if (!size) break; ret = send(fd, buff_seg.data(), size, 0); - SALTICIDAE_LOG_DEBUG("socket sent %zd bytes", ret); + SALTICIDAE_LOG_DEBUG("socket(%d) sent %zd bytes", fd, ret); size -= ret; if (size > 0) { @@ -125,7 +125,7 @@ void ConnPool::Conn::_recv_data(const conn_t &conn, int fd, int events) { bytearray_t buff_seg; buff_seg.resize(recv_chunk_size); ret = recv(fd, buff_seg.data(), recv_chunk_size, 0); - SALTICIDAE_LOG_DEBUG("socket read %zd bytes", ret); + SALTICIDAE_LOG_DEBUG("socket(%d) read %zd bytes", fd, ret); if (ret < 0) { if (errno == EWOULDBLOCK) break; @@ -163,7 +163,7 @@ void ConnPool::Conn::_send_data_tls(const conn_t &conn, int fd, int events) { ssize_t size = buff_seg.size(); if (!size) break; ret = tls->send(buff_seg.data(), size); - SALTICIDAE_LOG_DEBUG("ssl sent %zd bytes", ret); + SALTICIDAE_LOG_DEBUG("ssl(%d) sent %zd bytes", fd, ret); size -= ret; if (size > 0) { @@ -213,7 +213,7 @@ void ConnPool::Conn::_recv_data_tls(const conn_t &conn, int fd, int events) { bytearray_t buff_seg; buff_seg.resize(recv_chunk_size); ret = tls->recv(buff_seg.data(), recv_chunk_size); - SALTICIDAE_LOG_DEBUG("ssl read %zd bytes", ret); + SALTICIDAE_LOG_DEBUG("ssl(%d) read %zd bytes", fd, ret); if (ret < 0) { if (tls->get_error(ret) == SSL_ERROR_WANT_READ) break; -- cgit v1.2.3-70-g09d2