Use H:M:S format to display logs

pull/596/head
Arijit Basu 1 year ago
parent 39c04edfca
commit 0c949efe24
No known key found for this signature in database
GPG Key ID: 0F8EF5258DC38077

@ -1139,7 +1139,7 @@ fn draw_logs<B: Backend>(
.rev()
.take(layout_size.height as usize)
.map(|log| {
let time = log.created_at.format("%r");
let time = log.created_at.format("%H:%M:%S");
let cfg = match log.level {
app::LogLevel::Info => &logs_config.info,
app::LogLevel::Warning => &logs_config.warning,
@ -1158,7 +1158,7 @@ fn draw_logs<B: Backend>(
.enumerate()
.map(|(i, line)| {
if i == 0 {
format!("{prefix}: {line}")
format!("{prefix}) {line}")
} else {
format!("{padding} {line}")
}

Loading…
Cancel
Save