Fix timestamp format in log entries

Signed-off-by: trivernis <trivernis@protonmail.com>
axtloss/rework-partitioning
trivernis 3 years ago
parent f272734df2
commit 672b19b79f
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -39,11 +39,14 @@ fn format_log_entry(
let msg = record.args().to_string();
let level = record.level();
let msg = apply_uwu(level, msg);
let (h, m, s) = now.now().time().as_hms();
write!(
w,
"[ {} ] {} {}",
"[ {} ] {}:{}:{} {}",
style(level).paint(level.to_string()),
now.now(),
h,
m,
s,
msg
)
}

Loading…
Cancel
Save