@@ -342,7 +342,7 @@ void AddrManImpl::Unserialize(Stream& s_)
342
342
serialized_asmap_checksum == supplied_asmap_checksum};
343
343
344
344
if (!restore_bucketing) {
345
- LogPrint (BCLog::ADDRMAN, " Bucketing method was updated, re-bucketing addrman entries from disk\n " );
345
+ LogDebug (BCLog::ADDRMAN, " Bucketing method was updated, re-bucketing addrman entries from disk\n " );
346
346
}
347
347
348
348
for (auto bucket_entry : bucket_entries) {
@@ -387,7 +387,7 @@ void AddrManImpl::Unserialize(Stream& s_)
387
387
}
388
388
}
389
389
if (nLost + nLostUnk > 0 ) {
390
- LogPrint (BCLog::ADDRMAN, " addrman lost %i new and %i tried addresses due to collisions or invalid addresses\n " , nLostUnk, nLost);
390
+ LogDebug (BCLog::ADDRMAN, " addrman lost %i new and %i tried addresses due to collisions or invalid addresses\n " , nLostUnk, nLost);
391
391
}
392
392
393
393
const int check_code{CheckAddrman ()};
@@ -481,7 +481,7 @@ void AddrManImpl::ClearNew(int nUBucket, int nUBucketPos)
481
481
assert (infoDelete.nRefCount > 0 );
482
482
infoDelete.nRefCount --;
483
483
vvNew[nUBucket][nUBucketPos] = -1 ;
484
- LogPrint (BCLog::ADDRMAN, " Removed %s from new[%i][%i]\n " , infoDelete.ToStringAddrPort (), nUBucket, nUBucketPos);
484
+ LogDebug (BCLog::ADDRMAN, " Removed %s from new[%i][%i]\n " , infoDelete.ToStringAddrPort (), nUBucket, nUBucketPos);
485
485
if (infoDelete.nRefCount == 0 ) {
486
486
Delete (nIdDelete);
487
487
}
@@ -536,7 +536,7 @@ void AddrManImpl::MakeTried(AddrInfo& info, int nId)
536
536
vvNew[nUBucket][nUBucketPos] = nIdEvict;
537
537
nNew++;
538
538
m_network_counts[infoOld.GetNetwork ()].n_new ++;
539
- LogPrint (BCLog::ADDRMAN, " Moved %s from tried[%i][%i] to new[%i][%i] to make space\n " ,
539
+ LogDebug (BCLog::ADDRMAN, " Moved %s from tried[%i][%i] to new[%i][%i] to make space\n " ,
540
540
infoOld.ToStringAddrPort (), nKBucket, nKBucketPos, nUBucket, nUBucketPos);
541
541
}
542
542
assert (vvTried[nKBucket][nKBucketPos] == -1 );
@@ -612,7 +612,7 @@ bool AddrManImpl::AddSingle(const CAddress& addr, const CNetAddr& source, std::c
612
612
pinfo->nRefCount ++;
613
613
vvNew[nUBucket][nUBucketPos] = nId;
614
614
const auto mapped_as{m_netgroupman.GetMappedAS (addr)};
615
- LogPrint (BCLog::ADDRMAN, " Added %s%s to new[%i][%i]\n " ,
615
+ LogDebug (BCLog::ADDRMAN, " Added %s%s to new[%i][%i]\n " ,
616
616
addr.ToStringAddrPort (), (mapped_as ? strprintf (" mapped to AS%i" , mapped_as) : " " ), nUBucket, nUBucketPos);
617
617
} else {
618
618
if (pinfo->nRefCount == 0 ) {
@@ -663,7 +663,7 @@ bool AddrManImpl::Good_(const CService& addr, bool test_before_evict, NodeSecond
663
663
}
664
664
// Output the entry we'd be colliding with, for debugging purposes
665
665
auto colliding_entry = mapInfo.find (vvTried[tried_bucket][tried_bucket_pos]);
666
- LogPrint (BCLog::ADDRMAN, " Collision with %s while attempting to move %s to tried table. Collisions=%d\n " ,
666
+ LogDebug (BCLog::ADDRMAN, " Collision with %s while attempting to move %s to tried table. Collisions=%d\n " ,
667
667
colliding_entry != mapInfo.end () ? colliding_entry->second .ToStringAddrPort () : " " ,
668
668
addr.ToStringAddrPort (),
669
669
m_tried_collisions.size ());
@@ -672,7 +672,7 @@ bool AddrManImpl::Good_(const CService& addr, bool test_before_evict, NodeSecond
672
672
// move nId to the tried tables
673
673
MakeTried (info, nId);
674
674
const auto mapped_as{m_netgroupman.GetMappedAS (addr)};
675
- LogPrint (BCLog::ADDRMAN, " Moved %s%s to tried[%i][%i]\n " ,
675
+ LogDebug (BCLog::ADDRMAN, " Moved %s%s to tried[%i][%i]\n " ,
676
676
addr.ToStringAddrPort (), (mapped_as ? strprintf (" mapped to AS%i" , mapped_as) : " " ), tried_bucket, tried_bucket_pos);
677
677
return true ;
678
678
}
@@ -685,7 +685,7 @@ bool AddrManImpl::Add_(const std::vector<CAddress>& vAddr, const CNetAddr& sourc
685
685
added += AddSingle (*it, source, time_penalty) ? 1 : 0 ;
686
686
}
687
687
if (added > 0 ) {
688
- LogPrint (BCLog::ADDRMAN, " Added %i addresses (of %i) from %s: %i tried, %i new\n " , added, vAddr.size (), source.ToStringAddr (), nTried, nNew);
688
+ LogDebug (BCLog::ADDRMAN, " Added %i addresses (of %i) from %s: %i tried, %i new\n " , added, vAddr.size (), source.ToStringAddr (), nTried, nNew);
689
689
}
690
690
return added > 0 ;
691
691
}
@@ -777,7 +777,7 @@ std::pair<CAddress, NodeSeconds> AddrManImpl::Select_(bool new_only, std::option
777
777
778
778
// With probability GetChance() * chance_factor, return the entry.
779
779
if (insecure_rand.randbits <30 >() < chance_factor * info.GetChance () * (1 << 30 )) {
780
- LogPrint (BCLog::ADDRMAN, " Selected %s from %s\n " , info.ToStringAddrPort (), search_tried ? " tried" : " new" );
780
+ LogDebug (BCLog::ADDRMAN, " Selected %s from %s\n " , info.ToStringAddrPort (), search_tried ? " tried" : " new" );
781
781
return {info, info.m_last_try };
782
782
}
783
783
@@ -837,7 +837,7 @@ std::vector<CAddress> AddrManImpl::GetAddr_(size_t max_addresses, size_t max_pct
837
837
838
838
addresses.push_back (ai);
839
839
}
840
- LogPrint (BCLog::ADDRMAN, " GetAddr returned %d random addresses\n " , addresses.size ());
840
+ LogDebug (BCLog::ADDRMAN, " GetAddr returned %d random addresses\n " , addresses.size ());
841
841
return addresses;
842
842
}
843
843
@@ -935,7 +935,7 @@ void AddrManImpl::ResolveCollisions_()
935
935
936
936
// Give address at least 60 seconds to successfully connect
937
937
if (current_time - info_old.m_last_try > 60s) {
938
- LogPrint (BCLog::ADDRMAN, " Replacing %s with %s in tried table\n " , info_old.ToStringAddrPort (), info_new.ToStringAddrPort ());
938
+ LogDebug (BCLog::ADDRMAN, " Replacing %s with %s in tried table\n " , info_old.ToStringAddrPort (), info_new.ToStringAddrPort ());
939
939
940
940
// Replaces an existing address already in the tried table with the new address
941
941
Good_ (info_new, false , current_time);
@@ -945,7 +945,7 @@ void AddrManImpl::ResolveCollisions_()
945
945
// If the collision hasn't resolved in some reasonable amount of time,
946
946
// just evict the old entry -- we must not be able to
947
947
// connect to it for some reason.
948
- LogPrint (BCLog::ADDRMAN, " Unable to test; replacing %s with %s in tried table anyway\n " , info_old.ToStringAddrPort (), info_new.ToStringAddrPort ());
948
+ LogDebug (BCLog::ADDRMAN, " Unable to test; replacing %s with %s in tried table anyway\n " , info_old.ToStringAddrPort (), info_new.ToStringAddrPort ());
949
949
Good_ (info_new, false , current_time);
950
950
erase_collision = true ;
951
951
}
0 commit comments