Log raw messages to stdout

This commit is contained in:
Sijmen 2023-11-10 02:13:42 +01:00
parent 878e805b53
commit 4a10e38cfc

View file

@ -31,11 +31,14 @@ async fn irc_loop(
select! { select! {
val = irc_stream.next() => { val = irc_stream.next() => {
if let Some(message) = val.transpose()? { if let Some(message) = val.transpose()? {
print!("[Rx] {message}");
message_tx.send(message)?; message_tx.send(message)?;
} }
} }
val = input_rx.recv() => { val = input_rx.recv() => {
client.send(val.unwrap())?; let message = val.unwrap();
print!("[Tx] {message}");
client.send(message)?;
} }
} }
} }