Skip to content

Commit

Permalink
Add message to log
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-sherman committed Nov 14, 2024
1 parent 4875c73 commit 593d70d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages-rs/drainpipe/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,10 @@ async fn main() -> ExitCode {
err => {
let cursor = db::get_seq(&mut ctx.db_connection).unwrap_or(-1);
match err {
Some(Ok(_)) => {
eprintln!("Received non-binary message. At sequence {cursor}");
Some(Ok(msg)) => {
eprintln!(
"Received non-binary message. At sequence {cursor}. \"{msg}\""
);
}
Some(Err(error)) => {
eprintln!(
Expand Down

0 comments on commit 593d70d

Please sign in to comment.