From 7063722320f94b0dbf6990b78661ecfbb11b3e9d Mon Sep 17 00:00:00 2001 From: iceseer Date: Wed, 14 Aug 2024 11:45:16 +0300 Subject: [PATCH] audi errors Signed-off-by: iceseer --- core/authority_discovery/query/query_impl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/authority_discovery/query/query_impl.cpp b/core/authority_discovery/query/query_impl.cpp index 4472cda14f..fd45592639 100644 --- a/core/authority_discovery/query/query_impl.cpp +++ b/core/authority_discovery/query/query_impl.cpp @@ -108,7 +108,9 @@ namespace kagome::authority_discovery { } auto r = add(*id, value); if (not r) { - SL_DEBUG(log_, "Can't add: {}", r.error()); + SL_WARN(log_, "Can't add: {}", r.error()); + } else { + SL_INFO(log_, "Added or updated success: {}", *id); } return r; } @@ -211,6 +213,7 @@ namespace kagome::authority_discovery { outcome::result QueryImpl::add( const primitives::AuthorityDiscoveryId &authority, outcome::result> _res) { + SL_INFO(log_, "-+-+> Add auth discovery id: {}", authority); OUTCOME_TRY(signed_record_pb, _res); auto it = auth_to_peer_cache_.find(authority); if (it != auth_to_peer_cache_.end() @@ -285,6 +288,7 @@ namespace kagome::authority_discovery { std::ignore = host_.getPeerRepository().getAddressRepository().addAddresses( peer.id, peer.addresses, libp2p::peer::ttl::kRecentlyConnected); + SL_INFO(log_, "-+-+> Added key;{} peer:{}", authority, peer.id); peer_to_auth_cache_.insert_or_assign(peer.id, authority); auth_to_peer_cache_.insert_or_assign( authority,