Map pulse to timestamp

This commit is contained in:
Dominik Werder
2021-09-13 21:51:46 +02:00
parent 6fc2ba4c65
commit 8f33b894a8
8 changed files with 381 additions and 30 deletions

View File

@@ -1,3 +1,5 @@
pub mod append;
use crate::log::*;
use err::Error;
use std::future::Future;
@@ -80,6 +82,9 @@ pub fn tracing_init() {
let mut g = INITMX.lock().unwrap();
if *g == 0 {
tracing_subscriber::fmt()
.with_timer(tracing_subscriber::fmt::time::ChronoUtc::with_format(
"%Y-%m-%dT%H:%M:%S%.3fZ".into(),
))
//.with_timer(tracing_subscriber::fmt::time::uptime())
.with_target(true)
.with_thread_names(true)