Skip to content

Commit

Permalink
Improved error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Modularius committed Nov 29, 2024
1 parent 007d31e commit 143c120
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions trace-to-events/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,9 @@ async fn main() -> anyhow::Result<()> {
}
Err(e) => warn!("Kafka error: {}", e)
},
r = kafka_producer_thread_set.join_next() => {
if let Some(r) = r {
match r {
Ok(_) => {}
Err(e) => {
error!("{e}");
}
}
join_next = kafka_producer_thread_set.join_next() => {
if let Some(Err(e)) = join_next {
error!("Error Joining Kafka Producer Task: {e}");
}
}
}
Expand Down

0 comments on commit 143c120

Please sign in to comment.