diff options
| author | HampusM <hampus@hampusmat.com> | 2026-03-26 17:14:43 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-03-26 17:14:43 +0100 |
| commit | 5dbab7fce76997e800491b54ebeca612ac783094 (patch) | |
| tree | 45a79913ecec19075023fb49ccc728640b1220b0 /src | |
| parent | 9ab41d06b4ff0b52360a8cda756a3b1343a1e2fc (diff) | |
fix: shorten time in logs to hour:minute:secs.sec-fraction
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 3595e22..66cec55 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,6 +36,7 @@ use engine::windowing::window::{ }; use tracing::level_filters::LevelFilter; use tracing_subscriber::EnvFilter; +use tracing_subscriber::fmt::time::ChronoLocal; use tracing_subscriber::layer::SubscriberExt; use tracing_subscriber::util::SubscriberInitExt; @@ -50,7 +51,10 @@ const RESOURCE_DIR: &str = "res"; fn main() -> Result<(), Box<dyn Error>> { tracing_subscriber::registry() - .with(tracing_subscriber::fmt::layer()) + .with( + tracing_subscriber::fmt::layer() + .with_timer(ChronoLocal::new("%T%.6f".to_string())), + ) .with( EnvFilter::builder() .with_default_directive(LevelFilter::DEBUG.into()) |
