Skip to content

Commit 9ea03f1

Browse files
najamelanhawkw
authored andcommitted
subscriber: Remove trailing space from ChronoLocal time formatter. (#1103)
I reckon this is a bug, and @samschlegel fixed this for ChronoUtc, but not for ChronoLocal.
1 parent 88611cb commit 9ea03f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • tracing-subscriber/src/fmt/time

tracing-subscriber/src/fmt/time/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ impl FormatTime for ChronoLocal {
241241
fn format_time(&self, w: &mut dyn fmt::Write) -> fmt::Result {
242242
let time = chrono::Local::now();
243243
match self.format {
244-
ChronoFmtType::Rfc3339 => write!(w, "{} ", time.to_rfc3339()),
245-
ChronoFmtType::Custom(ref format_str) => write!(w, "{} ", time.format(format_str)),
244+
ChronoFmtType::Rfc3339 => write!(w, "{}", time.to_rfc3339()),
245+
ChronoFmtType::Custom(ref format_str) => write!(w, "{}", time.format(format_str)),
246246
}
247247
}
248248
}

0 commit comments

Comments
 (0)