Use logging.Formatter.default_time_format

This commit is contained in:
monosans
2023-10-31 19:00:46 +03:00
parent bd5b5db624
commit 813d320c64
+1 -1
View File
@@ -32,7 +32,7 @@ def configure_logging(console: Console, *, debug: bool) -> None:
logging.basicConfig(
level=logging.DEBUG if debug else logging.INFO,
format="%(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
datefmt=logging.Formatter.default_time_format,
handlers=(
RichHandler(
console=console,