mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 15:35:05 +02:00
Display reason for ignoring an element in ilias crawler
This commit is contained in:
parent
dc964a9d98
commit
13bc78c889
2 changed files with 11 additions and 3 deletions
|
|
@ -145,13 +145,15 @@ class PrettyLogger:
|
|||
|
||||
self.logger.info(f"{Style.DIM}Ignored {str(file_name)!r}.{Style.RESET_ALL}")
|
||||
|
||||
def filtered_path(self, path: Path) -> None:
|
||||
def filtered_path(self, path: Path, reason: str) -> None:
|
||||
"""
|
||||
A crawler filter rejected the given path.
|
||||
"""
|
||||
|
||||
self.logger.info(
|
||||
f"{Style.DIM}Not considering {str(path)!r} due to filter rules.{Style.RESET_ALL}"
|
||||
f"{Style.DIM}Not considering {str(path)!r} due to filter rules"
|
||||
f" ({Style.NORMAL}{reason}{Style.DIM})."
|
||||
f"{Style.RESET_ALL}"
|
||||
)
|
||||
|
||||
def starting_synchronizer(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue