Skip to content

Commit

Permalink
Update dev requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Feb 26, 2024
1 parent bb8eb4e commit a872294
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 6 additions & 1 deletion wyoming_piper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Expand Down

0 comments on commit a872294

Please sign in to comment.