From 31a594377977874830d95b500aae896f34b30170 Mon Sep 17 00:00:00 2001 From: Pavlos Rontidis Date: Mon, 12 Aug 2024 17:11:06 -0400 Subject: [PATCH] chore(tap): surface send error (#21056) * fix(tap): check if events are empty * repurpose PR --- lib/vector-tap/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vector-tap/src/lib.rs b/lib/vector-tap/src/lib.rs index 3e1eeb9b25703..a12b339c2bc46 100644 --- a/lib/vector-tap/src/lib.rs +++ b/lib/vector-tap/src/lib.rs @@ -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}"); } } }