mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Improve log messages when parsing ILIAS HTML
Previously some logs were split around an "await", which isn't a great idea.
This commit is contained in:
@ -243,11 +243,11 @@ class KitIliasWebCrawler(HttpCrawler):
|
||||
elements.clear()
|
||||
async with cl:
|
||||
next_stage_url: Optional[str] = url
|
||||
log.explain_topic(f"Parsing HTML page for {fmt_path(path)}")
|
||||
|
||||
while next_stage_url:
|
||||
soup = await self._get_page(next_stage_url)
|
||||
log.explain(f"URL: {url}")
|
||||
log.explain_topic(f"Parsing HTML page for {fmt_path(path)}")
|
||||
log.explain(f"URL: {next_stage_url}")
|
||||
page = IliasPage(soup, url, parent)
|
||||
next_stage_url = page.get_next_stage_url()
|
||||
|
||||
|
Reference in New Issue
Block a user