Skip to content

Commit

Permalink
Single-line logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirbaio committed Mar 9, 2021
1 parent c869441 commit 34d72a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decoder/src/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl<'a> Printer<'a> {
/// └─ <module> @ <file>:<line>
/// ```
pub fn print_colored<W: io::Write>(&self, sink: &mut W) -> io::Result<()> {
writeln!(
write!(
sink,
"{timestamp:>0$} {level:5} {args}",
self.min_timestamp_width,
Expand Down Expand Up @@ -351,7 +351,7 @@ fn print_location<W: io::Write>(sink: &mut W, record: &Record) -> io::Result<()>
if let Some(line) = record.line() {
loc.push_str(&format!(":{}", line));
}
writeln!(sink, "{}", format!("└─ {} @ {}", mod_path, loc).dimmed())?;
writeln!(sink, "{}", format!(" {} @ {}", mod_path, loc).dimmed())?;
}

Ok(())
Expand Down

0 comments on commit 34d72a5

Please sign in to comment.