Add three decimal places of sub-second resolution to root logger timestamps (#74518)

This commit is contained in:
puddly
2022-07-07 04:49:32 -04:00
committed by GitHub
parent d203cb0658
commit ae295f1bf5

View File

@@ -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: