From 5759c640e06f0223e958ac49793dcf8a4af1c990 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Sat, 27 Jul 2019 17:57:57 -0400 Subject: Put milliseconds since boot in log output. --- app/src/logger.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/logger.rs b/app/src/logger.rs index 5ef08f7..9f9452e 100644 --- a/app/src/logger.rs +++ b/app/src/logger.rs @@ -1,3 +1,4 @@ +use crate::rtc; use rb::{Reader, RingBuffer, Writer}; use core::cell::UnsafeCell; @@ -94,7 +95,8 @@ where let jrb = unsafe { &mut JRB }; write!( jrb, - "[{}] {} -- {}\r\n", + "[{}] {} {} -- {}\r\n", + rtc::millis(), record.level(), record.target(), record.args() -- cgit v1.2.3