File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ class ChatServer : noncopyable
3434 private:
3535 void onConnection (const TcpConnectionPtr& conn)
3636 {
37- LOG_INFO << conn->localAddress ().toIpPort () << " -> "
38- << conn->peerAddress ().toIpPort () << " is "
37+ LOG_INFO << conn->peerAddress ().toIpPort () << " -> "
38+ << conn->localAddress ().toIpPort () << " is "
3939 << (conn->connected () ? " UP" : " DOWN" );
4040
4141 if (conn->connected ())
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ class ChatServer : noncopyable
3939 private:
4040 void onConnection (const TcpConnectionPtr& conn)
4141 {
42- LOG_INFO << conn->localAddress ().toIpPort () << " -> "
43- << conn->peerAddress ().toIpPort () << " is "
42+ LOG_INFO << conn->peerAddress ().toIpPort () << " -> "
43+ << conn->localAddress ().toIpPort () << " is "
4444 << (conn->connected () ? " UP" : " DOWN" );
4545
4646 MutexLockGuard lock (mutex_);
Original file line number Diff line number Diff line change @@ -40,8 +40,8 @@ class ChatServer : noncopyable
4040 private:
4141 void onConnection (const TcpConnectionPtr& conn)
4242 {
43- LOG_INFO << conn->localAddress ().toIpPort () << " -> "
44- << conn->peerAddress ().toIpPort () << " is "
43+ LOG_INFO << conn->peerAddress ().toIpPort () << " -> "
44+ << conn->localAddress ().toIpPort () << " is "
4545 << (conn->connected () ? " UP" : " DOWN" );
4646
4747 MutexLockGuard lock (mutex_);
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ class ChatServer : noncopyable
4141 private:
4242 void onConnection (const TcpConnectionPtr& conn)
4343 {
44- LOG_INFO << conn->localAddress ().toIpPort () << " -> "
45- << conn->peerAddress ().toIpPort () << " is "
44+ LOG_INFO << conn->peerAddress ().toIpPort () << " -> "
45+ << conn->localAddress ().toIpPort () << " is "
4646 << (conn->connected () ? " UP" : " DOWN" );
4747
4848 if (conn->connected ())
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ class QueryServer : noncopyable
4343 private:
4444 void onConnection (const TcpConnectionPtr& conn)
4545 {
46- LOG_INFO << conn->localAddress ().toIpPort () << " -> "
47- << conn->peerAddress ().toIpPort () << " is "
46+ LOG_INFO << conn->peerAddress ().toIpPort () << " -> "
47+ << conn->localAddress ().toIpPort () << " is "
4848 << (conn->connected () ? " UP" : " DOWN" );
4949 }
5050
You can’t perform that action at this time.
0 commit comments