chore: Log the event result inside send_event_to function
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
@@ -100,17 +100,10 @@ impl CommandRunner for AnnounceArgs {
|
||||
.to_bech32()?;
|
||||
|
||||
|
||||
let result = client
|
||||
client
|
||||
.send_event_to(event, relays_list.as_ref(), &write_relays)
|
||||
.await?;
|
||||
|
||||
for relay in &result.success {
|
||||
tracing::info!(relay = %relay, "Event sent successfully");
|
||||
}
|
||||
for (relay, reason) in &result.failed {
|
||||
tracing::warn!(relay = %relay, reason = %reason, "Failed to send event");
|
||||
}
|
||||
|
||||
println!("Event: {nevent}",);
|
||||
println!("Repo Address: {}", naddr.to_bech32()?);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user