Add quiet mode

This commit is contained in:
2025-04-19 17:53:16 +01:00
parent 269c345f96
commit 7844a7eb9c

View File

@@ -84,6 +84,7 @@ def main():
help="Filename to write the resulting JSON to", help="Filename to write the resulting JSON to",
) )
parser.add_argument("--debug", action="store_true", help="Enable debug logging") parser.add_argument("--debug", action="store_true", help="Enable debug logging")
parser.add_argument("--quiet", action="store_true")
parser.add_argument( parser.add_argument(
"--workers", "--workers",
type=int, type=int,
@@ -94,6 +95,8 @@ def main():
if args.debug: if args.debug:
level = logging.DEBUG level = logging.DEBUG
elif args.quiet:
level = logging.ERROR
else: else:
level = logging.INFO level = logging.INFO
logging.basicConfig(level=level, stream=sys.stderr) logging.basicConfig(level=level, stream=sys.stderr)