Skip to content

Commit

Permalink
Flush after writing formatted records (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachariaszeiler committed Mar 28, 2024
1 parent b16f233 commit 7f93ce3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ impl<T: Write> Sink for FormatSink<T> {
self.sink
.write_all(self.format.fmt_record(&record)?.as_bytes())?;
self.sink.write_all(&[b'\n'])?;
self.sink.flush()?;
Ok(AsyncSink::Ready)
}

Expand Down

0 comments on commit 7f93ce3

Please sign in to comment.