From 5f7bc6e69d8ca0884dbb1321b9fdc9257c27bf12 Mon Sep 17 00:00:00 2001 From: joss17 Date: Fri, 18 Dec 2009 17:51:40 +0000 Subject: [PATCH] change debug output git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1905 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/p3connmgr.cc | 7 +------ libretroshare/src/services/p3disc.cc | 5 ++++- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/libretroshare/src/pqi/p3connmgr.cc b/libretroshare/src/pqi/p3connmgr.cc index 00faa9cee..c4e97aa3f 100644 --- a/libretroshare/src/pqi/p3connmgr.cc +++ b/libretroshare/src/pqi/p3connmgr.cc @@ -3314,15 +3314,10 @@ void peerConnectState::updateIpAddressList(IpAddressTimed ipTimed) { //purge old } void peerConnectState::printIpAddressList() { -#ifdef CONN_DEBUG - std::cerr << "peerConnectState::printIpAdressList() current ip list for the peer : " << id << ", size : " << ipAddressList.size() << ", adresses : " << std::endl; -#endif + std::cerr << "peerConnectState::printIpAdressList() current ip list for the peer : " << id << ", size : " << ipAddressList.size() << ", adresses : " << std::endl; for (std::list::iterator ipListIt = ipAddressList.begin(); ipListIt!=(ipAddressList.end()); ipListIt++) { -#ifdef CONN_DEBUG std::cerr << inet_ntoa(ipListIt->ipAddr.sin_addr) << ":" << ntohs(ipListIt->ipAddr.sin_port) << " seenTime : " << ipListIt->seenTime << std::endl; -#endif } - } bool peerConnectState::extractExtAddress(std::list IpAddressTimedList, IpAddressTimed &resultAddress) {//extract first address that is not the same as local address diff --git a/libretroshare/src/services/p3disc.cc b/libretroshare/src/services/p3disc.cc index 5f306faf2..873ca5b50 100644 --- a/libretroshare/src/services/p3disc.cc +++ b/libretroshare/src/services/p3disc.cc @@ -521,7 +521,10 @@ void p3disc::sendPeerDetails(std::string to, std::string about) } // Send off message - sendItem(di); +#ifdef P3DISC_DEBUG + di->print(std::cerr, 5); +#endif + sendItem(di); #ifdef P3DISC_DEBUG std::cerr << "Sent DI Message" << std::endl;