mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 10:53:25 +00:00
Better timestamp in logging
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
db16caf28c
commit
e6e771e9b5
@ -34,7 +34,7 @@ impl log::Log for Logger {
|
||||
return;
|
||||
}
|
||||
|
||||
let timestamp = format!("[{:>10?}]", Jiffies::elapsed().as_duration().as_secs_f64());
|
||||
let timestamp = format!("[{:>10.3}]", Jiffies::elapsed().as_duration().as_secs_f64());
|
||||
let level = format!("{:<5}", record.level());
|
||||
let record_str = format!("{}", record.args());
|
||||
|
||||
|
Reference in New Issue
Block a user