Include nanoseconds in log timestamp

This commit is contained in:
Michael Vines 2018-07-27 21:37:21 -07:00
parent 18d4da0076
commit 79924e407c
1 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,8 @@ static INIT: Once = ONCE_INIT;
/// Setup function that is only run once, even if called multiple times.
pub fn setup() {
INIT.call_once(|| {
env_logger::init();
env_logger::Builder::from_default_env()
.default_format_timestamp_nanos(true)
.init();
});
}