Log raw messages to stdout
This commit is contained in:
parent
878e805b53
commit
4a10e38cfc
1 changed files with 4 additions and 1 deletions
|
@ -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)?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue