chore(discovery): log the announce SPR alongside its addresses

Part of https://github.com/logos-storage/logos-storage-pm/issues/13

Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
This commit is contained in:
Chrysostomos Nanakos 2026-06-16 12:53:31 +03:00
parent 80b083768e
commit 01019b8700
No known key found for this signature in database

View File

@ -208,11 +208,13 @@ proc updateAnnounceRecord*(d: Discovery, addrs: openArray[MultiAddress]) =
d.announceAddrs = @addrs
info "Updating announce record", addrs = d.announceAddrs
d.providerRecord = SignedPeerRecord
.init(d.key, PeerRecord.init(d.peerId, d.announceAddrs))
.expect("Should construct signed record").some
info "Updating announce record",
addrs = d.announceAddrs, spr = d.providerRecord.get.toURI
if not d.protocol.isNil:
d.protocol.updateRecord(d.providerRecord).expect("Should update SPR")