mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 11:13:23 -03:00
Merge #8462: Move AdvertiseLocal debug output to net category
f13c1ba
Move AdvertiseLocal debug output to net category (Michael Rotarius)
This commit is contained in:
commit
53f8f226bd
2 changed files with 3 additions and 3 deletions
|
@ -5013,11 +5013,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
||||||
CAddress addr = GetLocalAddress(&pfrom->addr);
|
CAddress addr = GetLocalAddress(&pfrom->addr);
|
||||||
if (addr.IsRoutable())
|
if (addr.IsRoutable())
|
||||||
{
|
{
|
||||||
LogPrintf("ProcessMessages: advertising address %s\n", addr.ToString());
|
LogPrint("net", "ProcessMessages: advertising address %s\n", addr.ToString());
|
||||||
pfrom->PushAddress(addr);
|
pfrom->PushAddress(addr);
|
||||||
} else if (IsPeerAddrLocalGood(pfrom)) {
|
} else if (IsPeerAddrLocalGood(pfrom)) {
|
||||||
addr.SetIP(pfrom->addrLocal);
|
addr.SetIP(pfrom->addrLocal);
|
||||||
LogPrintf("ProcessMessages: advertising address %s\n", addr.ToString());
|
LogPrint("net", "ProcessMessages: advertising address %s\n", addr.ToString());
|
||||||
pfrom->PushAddress(addr);
|
pfrom->PushAddress(addr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,7 +221,7 @@ void AdvertiseLocal(CNode *pnode)
|
||||||
}
|
}
|
||||||
if (addrLocal.IsRoutable())
|
if (addrLocal.IsRoutable())
|
||||||
{
|
{
|
||||||
LogPrintf("AdvertiseLocal: advertising address %s\n", addrLocal.ToString());
|
LogPrint("net", "AdvertiseLocal: advertising address %s\n", addrLocal.ToString());
|
||||||
pnode->PushAddress(addrLocal);
|
pnode->PushAddress(addrLocal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue