We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b99726 commit 2bfb196Copy full SHA for 2bfb196
src/logging.rs
@@ -26,7 +26,7 @@ impl log::Log for SimpleLogger {
26
{
27
// let t = Local::now();
28
// let t_s = t.format("%Y-%m-%d %H:%M:%S.%f %z").to_string();
29
- let t = OffsetDateTime::now_local().unwrap();
+ let t = OffsetDateTime::now_local().unwrap_or(OffsetDateTime::now_utc());
30
let t_s = t.format(&FORMATTER).unwrap();
31
println!("{} (Core {}) {}: {}", t_s, self.lcore_id, record.level(), s);
32
}
0 commit comments