Skip to content

Commit

Permalink
chore(tap): surface send error (#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 Aug 12, 2024
1 parent b24e9ef commit 38fdd46
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 38fdd46

Please sign in to comment.