From 4a10e38cfc6270c9ff2ce7fe95c6fc6be98c9cfe Mon Sep 17 00:00:00 2001 From: Sijmen Date: Fri, 10 Nov 2023 02:13:42 +0100 Subject: [PATCH] Log raw messages to stdout --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d6d8045..2fa4acd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,11 +31,14 @@ async fn irc_loop( select! { val = irc_stream.next() => { if let Some(message) = val.transpose()? { + print!("[Rx] {message}"); message_tx.send(message)?; } } val = input_rx.recv() => { - client.send(val.unwrap())?; + let message = val.unwrap(); + print!("[Tx] {message}"); + client.send(message)?; } } }