From 91f04b3fe97dbfbfb003bca367a570cac7008122 Mon Sep 17 00:00:00 2001 From: Augie Fackler Date: Mon, 27 Jul 2020 22:55:13 -0400 Subject: [PATCH] logging: include a timestamp with millisecond precision --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index e9621c2..0390f40 100644 --- a/src/main.rs +++ b/src/main.rs @@ -125,7 +125,10 @@ fn main() -> anyhow::Result<()> { } let level = if DEBUG.flag { 3 } else { 2 }; - stderrlog::new().verbosity(level).init()?; + stderrlog::new() + .verbosity(level) + .timestamp(stderrlog::Timestamp::Millisecond) + .init()?; if stun_servers.is_empty() { stun_servers = default_stun_servers;