Demote / promote log messages to their appropriate level

This commit is contained in:
Thomas Eizinger 2021-02-26 17:03:07 +11:00
parent 7387884e6d
commit bbbe5f7ae8
No known key found for this signature in database
GPG key ID: 651AC83A6C6C8B96
7 changed files with 25 additions and 22 deletions

View file

@ -12,7 +12,7 @@ use futures::FutureExt;
use libp2p::{core::Multiaddr, PeerId};
use std::{convert::Infallible, sync::Arc};
use tokio::sync::mpsc::{Receiver, Sender};
use tracing::{debug, error, info};
use tracing::{debug, error, info, trace};
#[derive(Debug)]
pub struct Channels<T> {
@ -200,7 +200,7 @@ impl EventLoop {
if option.is_some() {
let peer_id = self.alice_peer_id;
if self.swarm.pt.is_connected(&peer_id) {
debug!("Already connected to Alice: {}", peer_id);
trace!("Already connected to Alice at {}", peer_id);
let _ = self.conn_established.send(peer_id).await;
} else {
info!("dialing alice: {}", peer_id);