mirror of
https://github.com/openzim/zimit.git
synced 2025-09-22 11:22:23 -04:00
Add support for --logging parameter of browsertrix crawler
This commit is contained in:
parent
343d0040cf
commit
a505df9fe0
@ -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
|
||||
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user