mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 08:17:08 +00:00
Add three decimal places of sub-second resolution to root logger timestamps (#74518)
This commit is contained in:
parent
d203cb0658
commit
ae295f1bf5
@ -285,7 +285,9 @@ def async_enable_logging(
|
|||||||
|
|
||||||
This method must be run in the event loop.
|
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"
|
datefmt = "%Y-%m-%d %H:%M:%S"
|
||||||
|
|
||||||
if not log_no_color:
|
if not log_no_color:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user