Skip to content

Commit

Permalink
Remove debug formatting from thread names
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalmer authored and emabee committed May 25, 2023
1 parent 270cdcb commit 49e9158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/formats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ pub fn with_thread(
) -> Result<(), std::io::Error> {
write!(
w,
"[{}] T[{:?}] {} [{}:{}] {}",
"[{}] T[{}] {} [{}:{}] {}",
now.format(TS_DASHES_BLANK_COLONS_DOT_BLANK),
thread::current().name().unwrap_or("<unnamed>"),
record.level(),
Expand All @@ -200,7 +200,7 @@ pub fn colored_with_thread(
let level = record.level();
write!(
w,
"[{}] T[{:?}] {} [{}:{}] {}",
"[{}] T[{}] {} [{}:{}] {}",
style(level).paint(now.format(TS_DASHES_BLANK_COLONS_DOT_BLANK).to_string()),
style(level).paint(thread::current().name().unwrap_or("<unnamed>")),
style(level).paint(level.to_string()),
Expand Down

0 comments on commit 49e9158

Please sign in to comment.