error 添加ip port

This commit is contained in:
aozhiwei 2019-06-26 20:45:16 +08:00
parent 380d07fb5d
commit 576ff5cb63

View File

@ -144,7 +144,12 @@ void TargetConn::ForwardClientMsgEx(f8::MsgHdr* hdr)
void TargetConn::on_error(a8::TcpClient* sender, int errorId)
{
a8::UdpLog::Instance()->Error("TargetConn errorid=%d", {errorId});
a8::UdpLog::Instance()->Error("TargetConn errorid=%d remote_ip:%s remote_port:%d",
{
errorId,
sender->remote_address,
sender->remote_port
});
}
void TargetConn::on_connect(a8::TcpClient* sender)