@@ -342,7 +342,7 @@ void AddrManImpl::Unserialize(Stream& s_)
342342 serialized_asmap_checksum == supplied_asmap_checksum};
343343
344344 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 " );
346346 }
347347
348348 for (auto bucket_entry : bucket_entries) {
@@ -387,7 +387,7 @@ void AddrManImpl::Unserialize(Stream& s_)
387387 }
388388 }
389389 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);
391391 }
392392
393393 const int check_code{CheckAddrman ()};
@@ -481,7 +481,7 @@ void AddrManImpl::ClearNew(int nUBucket, int nUBucketPos)
481481 assert (infoDelete.nRefCount > 0 );
482482 infoDelete.nRefCount --;
483483 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);
485485 if (infoDelete.nRefCount == 0 ) {
486486 Delete (nIdDelete);
487487 }
@@ -536,7 +536,7 @@ void AddrManImpl::MakeTried(AddrInfo& info, int nId)
536536 vvNew[nUBucket][nUBucketPos] = nIdEvict;
537537 nNew++;
538538 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 " ,
540540 infoOld.ToStringAddrPort (), nKBucket, nKBucketPos, nUBucket, nUBucketPos);
541541 }
542542 assert (vvTried[nKBucket][nKBucketPos] == -1 );
@@ -612,7 +612,7 @@ bool AddrManImpl::AddSingle(const CAddress& addr, const CNetAddr& source, std::c
612612 pinfo->nRefCount ++;
613613 vvNew[nUBucket][nUBucketPos] = nId;
614614 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 " ,
616616 addr.ToStringAddrPort (), (mapped_as ? strprintf (" mapped to AS%i" , mapped_as) : " " ), nUBucket, nUBucketPos);
617617 } else {
618618 if (pinfo->nRefCount == 0 ) {
@@ -663,7 +663,7 @@ bool AddrManImpl::Good_(const CService& addr, bool test_before_evict, NodeSecond
663663 }
664664 // Output the entry we'd be colliding with, for debugging purposes
665665 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 " ,
667667 colliding_entry != mapInfo.end () ? colliding_entry->second .ToStringAddrPort () : " " ,
668668 addr.ToStringAddrPort (),
669669 m_tried_collisions.size ());
@@ -672,7 +672,7 @@ bool AddrManImpl::Good_(const CService& addr, bool test_before_evict, NodeSecond
672672 // move nId to the tried tables
673673 MakeTried (info, nId);
674674 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 " ,
676676 addr.ToStringAddrPort (), (mapped_as ? strprintf (" mapped to AS%i" , mapped_as) : " " ), tried_bucket, tried_bucket_pos);
677677 return true ;
678678 }
@@ -685,7 +685,7 @@ bool AddrManImpl::Add_(const std::vector<CAddress>& vAddr, const CNetAddr& sourc
685685 added += AddSingle (*it, source, time_penalty) ? 1 : 0 ;
686686 }
687687 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);
689689 }
690690 return added > 0 ;
691691}
@@ -777,7 +777,7 @@ std::pair<CAddress, NodeSeconds> AddrManImpl::Select_(bool new_only, std::option
777777
778778 // With probability GetChance() * chance_factor, return the entry.
779779 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" );
781781 return {info, info.m_last_try };
782782 }
783783
@@ -837,7 +837,7 @@ std::vector<CAddress> AddrManImpl::GetAddr_(size_t max_addresses, size_t max_pct
837837
838838 addresses.push_back (ai);
839839 }
840- LogPrint (BCLog::ADDRMAN, " GetAddr returned %d random addresses\n " , addresses.size ());
840+ LogDebug (BCLog::ADDRMAN, " GetAddr returned %d random addresses\n " , addresses.size ());
841841 return addresses;
842842}
843843
@@ -935,7 +935,7 @@ void AddrManImpl::ResolveCollisions_()
935935
936936 // Give address at least 60 seconds to successfully connect
937937 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 ());
939939
940940 // Replaces an existing address already in the tried table with the new address
941941 Good_ (info_new, false , current_time);
@@ -945,7 +945,7 @@ void AddrManImpl::ResolveCollisions_()
945945 // If the collision hasn't resolved in some reasonable amount of time,
946946 // just evict the old entry -- we must not be able to
947947 // 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 ());
949949 Good_ (info_new, false , current_time);
950950 erase_collision = true ;
951951 }
0 commit comments