diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-07-13 10:35:33 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-07-13 10:35:33 -0700 |
commit | 547b1c6157099745263b58f5fd83f181043d7340 (patch) | |
tree | 7e42ad6f0d65496b43a43b515b3eb74240e66006 /node | |
parent | 0b354803f3ea0eecd046a37c51d4d2d78934b502 (diff) | |
download | infinitytier-547b1c6157099745263b58f5fd83f181043d7340.tar.gz infinitytier-547b1c6157099745263b58f5fd83f181043d7340.zip |
Add additional TRACE output in pushDirectPaths.
Diffstat (limited to 'node')
-rw-r--r-- | node/Peer.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/node/Peer.cpp b/node/Peer.cpp index 23616a6a..73c20228 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<Path> 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<Path>::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<Path>::const_iterator p(dps.begin()); while (p != dps.end()) { |