Properly format day delimiter

This commit is contained in:
2023-11-05 17:11:32 +01:00
parent 06e3228bbc
commit 1a34a4ce5e
7 changed files with 171 additions and 76 deletions

View File

@ -24,7 +24,7 @@ use tokio::sync::mpsc::UnboundedReceiver;
use tracing_error::ErrorLayer;
use tracing_subscriber::prelude::*;
use super::{Buffer, BufferItem};
use super::{Buffer, BufferItem, BufferItemContent};
use crate::widgets::Prerender;
/// Maximum number of log lines to be stored in memory
@ -71,10 +71,10 @@ impl Buffer for LogBuffer {
.chain(slice2.into_iter())
.rev()
.map(|(line, prerender)| BufferItem {
text: line.clone().into_text().unwrap_or_else(|e| {
content: BufferItemContent::Text(line.clone().into_text().unwrap_or_else(|e| {
tracing::error!("Could not convert line from ANSI codes to ratatui: {}", e);
Text::raw(line)
}),
})),
prerender,
}),
)