Skip to content

Commit

Permalink
chore: add more debug logs for libp2p initialisation (#137)
Browse files Browse the repository at this point in the history
Co-authored-by: mace <[email protected]>
  • Loading branch information
P1sar and MakMuftic authored Mar 20, 2023
1 parent 1389a3b commit 54138a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func Run() error {
err = topologyStore.StoreTopology(networkTopology)
panicOnError(err)
}
log.Info().Msg("Successfully loaded topology")
log.Info().Msgf("Successfully loaded topology %+v", networkTopology)

privBytes, err := crypto.ConfigDecodeKey(configuration.RelayerConfig.MpcConfig.Key)
panicOnError(err)
Expand Down
1 change: 1 addition & 0 deletions comm/p2p/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func LoadPeers(h host.Host, peers []*peer.AddrInfo) {
}

for _, p := range peers {
log.Debug().Msgf("Adding new peer with ID %s and address %s", p.ID, p.String())
h.Peerstore().AddAddr(p.ID, p.Addrs[0], peerstore.PermanentAddrTTL)
}
}

0 comments on commit 54138a0

Please sign in to comment.