Add support for --logging parameter of browsertrix crawler

This commit is contained in:
benoit74 2024-01-23 17:28:56 +01:00
parent 343d0040cf
commit a505df9fe0
No known key found for this signature in database
GPG Key ID: B89606434FC7B530
2 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- New `--version` flag to display Zimit version
- New `--logging` flag to adjust Browsertrix Crawler logging (#273)
### Changed

View File

@ -353,6 +353,11 @@ def run(raw_args):
version=f"Zimit {__version__}",
)
parser.add_argument(
"--logging",
help="Crawler logging configuration",
)
zimit_args, warc2zim_args = parser.parse_known_args(raw_args)
# pass url and output to warc2zim also
@ -560,6 +565,7 @@ def get_node_cmd_line(args):
"healthCheckPort",
"overwrite",
"config",
"logging",
]:
value = getattr(args, arg)
if value is None or (isinstance(value, bool) and value is False):