Increase cli tool logging timestamps to include nanoseconds (#637)

This commit is contained in:
J. Nick Koston 2023-11-13 13:56:52 -06:00 committed by GitHub
parent 634c739048
commit e70cbb8135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",
)