fix markdown table formatter for log capture

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-08-02 22:18:16 +00:00
parent 13aa353765
commit 0c6bbde25f
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ where
S: Write,
{
let level = level.as_str().to_uppercase();
writeln!(out, "| `{level:>5}` | `{span:^12}` | `{msg} |")?;
writeln!(out, "| {level:>5} | {span:^12} | {msg} |")?;
Ok(())
}
@ -41,7 +41,7 @@ pub fn markdown_table_head<S>(out: &mut S) -> Result<()>
where
S: Write,
{
write!(out, "| level | span | message |\n|------:|:----:|:--------|\n")?;
write!(out, "| level | span | message |\n| ------: | :-----: | :------- |\n")?;
Ok(())
}