added logging in TcpTransport