From 5045bbcee9ba7d913b56cb3b37f18039c790dae1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 26 Jun 2019 20:47:54 +0800 Subject: [PATCH] =?UTF-8?q?error=20=E6=B7=BB=E5=8A=A0ip=20port?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/wsproxy/mastersvr.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/wsproxy/mastersvr.cc b/server/wsproxy/mastersvr.cc index 538a2b3..a79cd93 100644 --- a/server/wsproxy/mastersvr.cc +++ b/server/wsproxy/mastersvr.cc @@ -66,7 +66,12 @@ bool MasterSvr::Connected() void MasterSvr::on_error(a8::TcpClient* sender, int errorId) { - a8::UdpLog::Instance()->Error("MasterSvr errorid=%d", {errorId}); + a8::UdpLog::Instance()->Error("MasterSvr errorid=%d remote_ip:%s remote_port:%d", + { + errorId, + sender->remote_address, + sender->remote_port + }); } void MasterSvr::on_connect(a8::TcpClient* sender)