diff options
author | Determinant <[email protected]> | 2020-02-22 14:42:43 -0500 |
---|---|---|
committer | Determinant <[email protected]> | 2020-02-22 14:42:43 -0500 |
commit | c4ce16649f3eccd2e02a918a34251cd9f0f1a437 (patch) | |
tree | 8ef9c35a187ec23b0c30d1ad14e63fec2972fd9a /src | |
parent | 3707146f42ccc066edf214cc77118f91b687e47b (diff) |
...
Diffstat (limited to 'src')
-rw-r--r-- | src/conn.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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; |