Skip to content

Commit

Permalink
Merge pull request #274 from openzim/add_logging
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 authored Jan 25, 2024
2 parents 343d004 + a505df9 commit f435902
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions src/zimit/zimit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit f435902

Please sign in to comment.