Skip to content

Commit

Permalink
Log shutdown ingest client status
Browse files Browse the repository at this point in the history
jonlamb-gh committed Apr 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 83e1b6a commit de68baa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/defmt_reader.rs
Original file line number Diff line number Diff line change
@@ -202,6 +202,15 @@ pub async fn run<R: Read + Send>(

client.inner.flush().await?;

if let Ok(status) = client.inner.status().await {
debug!(
events_received = status.events_received,
events_written = status.events_written,
events_pending = status.events_pending,
"Ingest status"
);
}

if let Some(res) = maybe_read_result {
res
} else {

0 comments on commit de68baa

Please sign in to comment.