feat: add more logging for iroh initialization and peer addition

This commit is contained in:
link2xt
2024-10-23 17:14:03 +00:00
parent 4b3a6445fb
commit db6d451c90
2 changed files with 3 additions and 1 deletions

View File

@@ -1461,10 +1461,11 @@ async fn add_parts(
let iroh = context.get_or_try_init_peer_channel().await?;
iroh.maybe_add_gossip_peers(topic, vec![node_addr]).await?;
}
info!(context, "Added iroh peer to the topic of {instance_id}.");
} else {
warn!(
context,
"Could not add iroh peer because {instance_id} has no topic"
"Could not add iroh peer because {instance_id} has no topic."
);
}
chat_id = DC_CHAT_ID_TRASH;