Browse Source

Merge #8462: Move AdvertiseLocal debug output to net category

f13c1ba Move AdvertiseLocal debug output to net category (Michael Rotarius)
0.14
Pieter Wuille 8 years ago
parent
commit
53f8f226bd
No known key found for this signature in database
GPG Key ID: DBA1A67379A1A931
  1. 4
      src/main.cpp
  2. 2
      src/net.cpp

4
src/main.cpp

@ -5013,11 +5013,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, @@ -5013,11 +5013,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
CAddress addr = GetLocalAddress(&pfrom->addr);
if (addr.IsRoutable())
{
LogPrintf("ProcessMessages: advertising address %s\n", addr.ToString());
LogPrint("net", "ProcessMessages: advertising address %s\n", addr.ToString());
pfrom->PushAddress(addr);
} else if (IsPeerAddrLocalGood(pfrom)) {
addr.SetIP(pfrom->addrLocal);
LogPrintf("ProcessMessages: advertising address %s\n", addr.ToString());
LogPrint("net", "ProcessMessages: advertising address %s\n", addr.ToString());
pfrom->PushAddress(addr);
}
}

2
src/net.cpp

@ -221,7 +221,7 @@ void AdvertiseLocal(CNode *pnode) @@ -221,7 +221,7 @@ void AdvertiseLocal(CNode *pnode)
}
if (addrLocal.IsRoutable())
{
LogPrintf("AdvertiseLocal: advertising address %s\n", addrLocal.ToString());
LogPrint("net", "AdvertiseLocal: advertising address %s\n", addrLocal.ToString());
pnode->PushAddress(addrLocal);
}
}

Loading…
Cancel
Save