Properly format output of commands history, config, balance and list-sellers using tracing

This commit is contained in:
binarybaron 2021-12-07 15:51:29 +01:00
parent 490c1d2ec1
commit e03865e172
2 changed files with 53 additions and 32 deletions

View file

@ -200,7 +200,7 @@ impl EventLoop {
for registration in registrations {
let peer = registration.record.peer_id();
for address in registration.record.addresses() {
tracing::info!("Discovered peer {} at {}", peer, address);
tracing::info!(peer_id=%peer, address=%address, "Discovered peer");
let p2p_suffix = Protocol::P2p(*peer.as_ref());
let _address_with_p2p = if !address