860: Properly format output of commands `history`, `config`, `balance` and `list-sellers` using tracing r=rishflab a=binarybaron

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

Closes https://github.com/comit-network/xmr-btc-swap/issues/766

Co-authored-by: binarybaron <you@domain.com>
This commit is contained in:
bors[bot] 2021-12-22 00:04:27 +00:00 committed by GitHub
commit ea3316aa4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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