mirror of
https://github.com/openzim/zimit.git
synced 2025-09-23 03:52:16 -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
|
### Added
|
||||||
|
|
||||||
- New `--version` flag to display Zimit version
|
- New `--version` flag to display Zimit version
|
||||||
|
- New `--logging` flag to adjust Browsertrix Crawler logging (#273)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
@ -353,6 +353,11 @@ def run(raw_args):
|
|||||||
version=f"Zimit {__version__}",
|
version=f"Zimit {__version__}",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
parser.add_argument(
|
||||||
|
"--logging",
|
||||||
|
help="Crawler logging configuration",
|
||||||
|
)
|
||||||
|
|
||||||
zimit_args, warc2zim_args = parser.parse_known_args(raw_args)
|
zimit_args, warc2zim_args = parser.parse_known_args(raw_args)
|
||||||
|
|
||||||
# pass url and output to warc2zim also
|
# pass url and output to warc2zim also
|
||||||
@ -560,6 +565,7 @@ def get_node_cmd_line(args):
|
|||||||
"healthCheckPort",
|
"healthCheckPort",
|
||||||
"overwrite",
|
"overwrite",
|
||||||
"config",
|
"config",
|
||||||
|
"logging",
|
||||||
]:
|
]:
|
||||||
value = getattr(args, arg)
|
value = getattr(args, arg)
|
||||||
if value is None or (isinstance(value, bool) and value is False):
|
if value is None or (isinstance(value, bool) and value is False):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user