From 547b1c6157099745263b58f5fd83f181043d7340 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 13 Jul 2015 10:35:33 -0700 Subject: [PATCH] Add additional TRACE output in pushDirectPaths. --- node/Peer.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/node/Peer.cpp b/node/Peer.cpp index 23616a6ad..73c202282 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -229,7 +229,17 @@ void Peer::pushDirectPaths(const RuntimeEnvironment *RR,RemotePath *path,uint64_ _lastDirectPathPush = now; std::vector dps(RR->node->directPaths()); - TRACE("pushing %u direct paths (local interface addresses) to %s",(unsigned int)dps.size(),_id.address().toString().c_str()); +#ifdef ZT_TRACE + { + std::string ps; + for(std::vector::const_iterator p(dps.begin());p!=dps.end();++p) { + if (ps.length() > 0) + ps.push_back(','); + ps.append(p->address().toString()); + } + TRACE("pushing %u direct paths (local interface addresses) to %s: %s",(unsigned int)dps.size(),_id.address().toString().c_str(),ps.c_str()); + } +#endif std::vector::const_iterator p(dps.begin()); while (p != dps.end()) {