Skip to content

Commit d6b2d6d

Browse files
committed
Update print log for socket connection info
1 parent 4a989a7 commit d6b2d6d

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

proxy/include/proxy/proxy_server.hpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5572,8 +5572,9 @@ R"x*x*x(<html>
55725572

55735573
if (::getsockopt(sockfd, protocol, SO_ORIGINAL_DST, (char*)&addr, &addrlen) < 0)
55745574
{
5575-
XLOG_FWARN("connection id: {}, getsockopt: {}, SO_ORIGINAL_DST: {}",
5576-
connection_id, (int)sockfd, strerror(errno));
5575+
XLOG_WARN << "connection id: " << connection_id
5576+
<< ", getsockopt: " << (int)sockfd
5577+
<< ", SO_ORIGINAL_DST: " << strerror(errno);
55775578
co_return remote_endp;
55785579
}
55795580

@@ -5603,10 +5604,8 @@ R"x*x*x(<html>
56035604
remote_endp->port(port);
56045605
}
56055606

5606-
XLOG_DBG << "connection id: "
5607-
<< connection_id
5608-
<< ", tproxy, remote: "
5609-
<< *remote_endp;
5607+
XLOG_DBG << "connection id: " << connection_id
5608+
<< ", tproxy, remote: " << *remote_endp;
56105609

56115610
if (remote_endp->address().is_loopback())
56125611
{

0 commit comments

Comments
 (0)