Skip to content

Commit

Permalink
chore(tap): surface send error (vectordotdev#21056)
Browse files Browse the repository at this point in the history
* fix(tap): check if events are empty

* repurpose PR
  • Loading branch information
pront authored and ym committed Aug 14, 2024
1 parent 31d7172 commit 31a5943
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vector-tap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ impl<'a> TapRunner<'a> {
self.output_event_stdout(&output_events, formatter);
}
OutputChannel::AsyncChannel(sender_tx) => {
if sender_tx.send(output_events).await.is_err() {
debug!("Could not send events");
if let Err(error) = sender_tx.send(output_events).await {
error!("Could not send tap events: {error}");
}
}
}
Expand Down

0 comments on commit 31a5943

Please sign in to comment.