From a872294ed1cbe30dda710c3d9cb19d28fdf1a0c0 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Mon, 26 Feb 2024 10:37:15 -0600 Subject: [PATCH] Update dev requirements --- requirements_dev.txt | 4 ++-- wyoming_piper/__main__.py | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/requirements_dev.txt b/requirements_dev.txt index 61eb910..91c15ae 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -6,6 +6,6 @@ pylint==2.15.9 pytest==7.4.4 pytest-asyncio==0.23.3 tox>=4,<5 -scipy>=1.10 -numpy>=1.20 +scipy>=1.10,<2 +numpy>=1.20,<2 python-speech-features==0.6 diff --git a/wyoming_piper/__main__.py b/wyoming_piper/__main__.py index 6d77c88..08b20f1 100755 --- a/wyoming_piper/__main__.py +++ b/wyoming_piper/__main__.py @@ -68,6 +68,9 @@ async def main() -> None: ) # parser.add_argument("--debug", action="store_true", help="Log DEBUG messages") + parser.add_argument( + "--log-format", default=logging.BASIC_FORMAT, help="Format for log messages" + ) parser.add_argument( "--version", action="version", @@ -80,7 +83,9 @@ async def main() -> None: # Default to first data directory args.download_dir = args.data_dir[0] - logging.basicConfig(level=logging.DEBUG if args.debug else logging.INFO) + logging.basicConfig( + level=logging.DEBUG if args.debug else logging.INFO, format=args.log_format + ) _LOGGER.debug(args) # Load voice info