Skip to content

Commit

Permalink
Fix host logs being printed in bold
Browse files Browse the repository at this point in the history
  • Loading branch information
andresovela committed Jul 19, 2023
1 parent a0fca7a commit b28d4ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions decoder/src/log/stdout_logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,12 @@ impl<'a> Printer<'a> {
}

fn print_log<W: io::Write>(&self, sink: &mut W) -> io::Result<()> {
let args = match self.record {
Record::Defmt(record) => record.args(),
Record::Host(record) => record.args(),
let log = match self.record {
Record::Defmt(record) => color_diff(record.args().to_string()),
Record::Host(record) => record.args().to_string(),
};

write!(sink, "{log}", log = color_diff(args.to_string()),)
write!(sink, "{log}")
}
}

Expand Down

0 comments on commit b28d4ea

Please sign in to comment.