Skip to content

Commit

Permalink
audi errors
Browse files Browse the repository at this point in the history
Signed-off-by: iceseer <[email protected]>
  • Loading branch information
iceseer committed Aug 14, 2024
1 parent 312db03 commit 6b81857
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/authority_discovery/query/query_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ 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());
}
return r;
}
Expand Down Expand Up @@ -211,6 +211,7 @@ namespace kagome::authority_discovery {
outcome::result<void> QueryImpl::add(
const primitives::AuthorityDiscoveryId &authority,
outcome::result<std::vector<uint8_t>> _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()
Expand Down Expand Up @@ -285,6 +286,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,
Expand Down

0 comments on commit 6b81857

Please sign in to comment.