Show peer info in debug

This commit is contained in:
JoelKatz
2012-10-26 15:37:41 -07:00
parent 5808ac0700
commit bde211663f

View File

@@ -12,7 +12,7 @@
SETUP_LOG();
// #define LA_DEBUG
#define LA_DEBUG
#define LEDGER_ACQUIRE_TIMEOUT 750
#define TRUST_NETWORK
@@ -74,7 +74,7 @@ void PeerSet::invokeOnTimer()
if (!mProgress)
{
++mTimeouts;
cLog(lsWARNING) << "Timeout " << mTimeouts << " acquiring " << mHash;
cLog(lsWARNING) << "Timeout(" << mTimeouts << ") pc=" << mPeers.size() << " acquiring " << mHash;
}
else
mProgress = false;
@@ -144,7 +144,8 @@ void LedgerAcquire::onTimer()
setFailed();
done();
}
else trigger(Peer::pointer(), true);
else
trigger(Peer::pointer(), true);
}
boost::weak_ptr<PeerSet> LedgerAcquire::pmDowncast()