From ae295f1bf5fc9564533747e04ee22c624f905308 Mon Sep 17 00:00:00 2001 From: puddly <32534428+puddly@users.noreply.github.com> Date: Thu, 7 Jul 2022 04:49:32 -0400 Subject: [PATCH] Add three decimal places of sub-second resolution to root logger timestamps (#74518) --- homeassistant/bootstrap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/bootstrap.py b/homeassistant/bootstrap.py index 81d0fa72134..939d3073f57 100644 --- a/homeassistant/bootstrap.py +++ b/homeassistant/bootstrap.py @@ -285,7 +285,9 @@ def async_enable_logging( This method must be run in the event loop. """ - fmt = "%(asctime)s %(levelname)s (%(threadName)s) [%(name)s] %(message)s" + fmt = ( + "%(asctime)s.%(msecs)03d %(levelname)s (%(threadName)s) [%(name)s] %(message)s" + ) datefmt = "%Y-%m-%d %H:%M:%S" if not log_no_color: