fix markdown table formatter for log capture
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
13aa353765
commit
0c6bbde25f
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue