From 3bc444b08713bd465af1162e25de114c43cea4b6 Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 26 Jan 2016 23:00:10 -0500 Subject: [PATCH] removed some debug info --- libretroshare/src/dht/p3bitdht_relay.cc | 32 +++++++++---------- libretroshare/src/pqi/pqipersongrp.cc | 2 +- .../src/gui/common/FriendSelectionWidget.cpp | 4 +-- retroshare-gui/src/gui/gxs/GxsIdChooser.cpp | 4 +-- .../src/gui/msgs/MessageComposer.cpp | 2 +- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/libretroshare/src/dht/p3bitdht_relay.cc b/libretroshare/src/dht/p3bitdht_relay.cc index 8b04a3e2f..d71f3e7c5 100644 --- a/libretroshare/src/dht/p3bitdht_relay.cc +++ b/libretroshare/src/dht/p3bitdht_relay.cc @@ -299,10 +299,10 @@ bool p3BitDht::loadList(std::list& load) return false; } - std::cerr << "BITDHT Load Item:"; - std::cerr << std::endl; + //std::cerr << "BITDHT Load Item:"; + //std::cerr << std::endl; - config->print(std::cerr, 0); + //config->print(std::cerr, 0); std::list servers; int peers[RSDHT_RELAY_NUM_CLASS] = {0}; @@ -320,16 +320,16 @@ bool p3BitDht::loadList(std::list& load) { /* add to RELAY_SERVER List */ servers.push_back(value); - std::cerr << "p3BitDht::loadList() Found Server: " << value; - std::cerr << std::endl; + //std::cerr << "p3BitDht::loadList() Found Server: " << value; + //std::cerr << std::endl; } else if (0 == strncmp(key.c_str(), "RELAY_MODE", 10)) { mode = atoi(value.c_str()); haveMode = true; - std::cerr << "p3BitDht::loadList() Found Mode: " << mode; - std::cerr << std::endl; + //std::cerr << "p3BitDht::loadList() Found Mode: " << mode; + //std::cerr << std::endl; } else if (0 == strncmp(key.c_str(), "RELAY_CLASS", 11)) { @@ -358,24 +358,24 @@ bool p3BitDht::loadList(std::list& load) if (key[13] == 'C') { - std::cerr << "p3BitDht::loadList() Found Count(" << idx << "): "; - std::cerr << val; - std::cerr << std::endl; + //std::cerr << "p3BitDht::loadList() Found Count(" << idx << "): "; + //std::cerr << val; + //std::cerr << std::endl; peers[idx] = val; } else { - std::cerr << "p3BitDht::loadList() Found Bandwidth(" << idx << "): "; - std::cerr << val; - std::cerr << std::endl; + //std::cerr << "p3BitDht::loadList() Found Bandwidth(" << idx << "): "; + //std::cerr << val; + //std::cerr << std::endl; bandwidth[idx] = val; } } else { - std::cerr << "p3BitDht::loadList() Unknown Key:value: " << key; - std::cerr << ":" << value; - std::cerr << std::endl; + //std::cerr << "p3BitDht::loadList() Unknown Key:value: " << key; + //std::cerr << ":" << value; + //std::cerr << std::endl; } } diff --git a/libretroshare/src/pqi/pqipersongrp.cc b/libretroshare/src/pqi/pqipersongrp.cc index e6a44d5cd..09430369c 100644 --- a/libretroshare/src/pqi/pqipersongrp.cc +++ b/libretroshare/src/pqi/pqipersongrp.cc @@ -434,9 +434,9 @@ int pqipersongrp::removePeer(const RsPeerId& id) std::map::iterator it; #ifdef PGRP_DEBUG -#endif std::cerr << "pqipersongrp::removePeer() id: " << id; std::cerr << std::endl; +#endif RsStackMutex stack(coreMtx); /**************** LOCKED MUTEX ****************/ diff --git a/retroshare-gui/src/gui/common/FriendSelectionWidget.cpp b/retroshare-gui/src/gui/common/FriendSelectionWidget.cpp index bbe15e84f..f6eb99e13 100644 --- a/retroshare-gui/src/gui/common/FriendSelectionWidget.cpp +++ b/retroshare-gui/src/gui/common/FriendSelectionWidget.cpp @@ -254,10 +254,10 @@ void FriendSelectionWidget::loadRequest(const TokenQueue */*queue*/, const Token for(uint32_t i=0;isetItemData(index, (type == GXS_ID_DETAILS_TYPE_DONE) ? TYPE_FOUND_ID : TYPE_UNKNOWN_ID, ROLE_TYPE); chooser->setItemIcon(index, icons.empty() ? QIcon() : icons[0]); - std::cerr << "ID=" << details.mId << ", chooser->flags()=" << chooser->flags() << ", flags=" << details.mFlags ; + //std::cerr << "ID=" << details.mId << ", chooser->flags()=" << chooser->flags() << ", flags=" << details.mFlags ; if((chooser->flags() & IDCHOOSER_NON_ANONYMOUS) && !(details.mFlags & RS_IDENTITY_FLAGS_PGP_LINKED)) { - std::cerr << " - disabling ID - entry = " << index << std::endl; + //std::cerr << " - disabling ID - entry = " << index << std::endl; chooser->setEntryEnabled(index,false) ; } std::cerr << std::endl; diff --git a/retroshare-gui/src/gui/msgs/MessageComposer.cpp b/retroshare-gui/src/gui/msgs/MessageComposer.cpp index c53d73f10..752cb4086 100644 --- a/retroshare-gui/src/gui/msgs/MessageComposer.cpp +++ b/retroshare-gui/src/gui/msgs/MessageComposer.cpp @@ -1285,7 +1285,7 @@ bool MessageComposer::sendMessage_internal(bool bDraftbox) mi.rsgxsid_srcId = RsGxsId(ui.respond_to_CB->itemData(ui.respond_to_CB->currentIndex()).toString().toStdString()) ; - std::cerr << "MessageSend: setting 'from' field to GXS id = " << mi.rsgxsid_srcId << std::endl; + //std::cerr << "MessageSend: setting 'from' field to GXS id = " << mi.rsgxsid_srcId << std::endl; mi.title = misc::removeNewLine(ui.titleEdit->text()).toUtf8().constData(); // needed to send system flags with reply