fix the EXTRACT to match the styling of the other methods

This commit is contained in:
medo94my
2025-05-14 16:01:10 +08:00
parent 260e2dc347
commit 137556b3dc

View File

@@ -585,10 +585,12 @@ class AsyncWebCrawler:
# Choose content based on input_format # Choose content based on input_format
content_format = config.extraction_strategy.input_format content_format = config.extraction_strategy.input_format
if content_format == "fit_markdown" and not markdown_result.fit_markdown: if content_format == "fit_markdown" and not markdown_result.fit_markdown:
self.logger.warning(
message="Fit markdown requested but not available. Falling back to raw markdown.", self.logger.url_status(
url=_url,
success=bool(html),
timing=time.perf_counter() - t1,
tag="EXTRACT", tag="EXTRACT",
params={"url": _url},
) )
content_format = "markdown" content_format = "markdown"