From e70cbb813513ddfa62e7eabfa0762d69c6acb256 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 13 Nov 2023 13:56:52 -0600 Subject: [PATCH] Increase cli tool logging timestamps to include nanoseconds (#637) --- aioesphomeapi/log_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aioesphomeapi/log_reader.py b/aioesphomeapi/log_reader.py index 0f53b17..11e9ebe 100644 --- a/aioesphomeapi/log_reader.py +++ b/aioesphomeapi/log_reader.py @@ -24,7 +24,7 @@ async def main(argv: list[str]) -> None: args = parser.parse_args(argv[1:]) logging.basicConfig( - format="%(asctime)s %(levelname)-8s %(message)s", + format="%(asctime)s.%(msecs)03d %(levelname)-8s %(message)s", level=logging.DEBUG if args.verbose else logging.INFO, datefmt="%Y-%m-%d %H:%M:%S", )