error 添加ip port

This commit is contained in:
aozhiwei 2019-06-26 20:47:54 +08:00
parent 576ff5cb63
commit 5045bbcee9

View File

@ -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)