refactor(logging): update extraction logging to use url_status method

This commit is contained in:
Ahmed-Tawfik94
2025-05-19 16:32:22 +08:00
parent 137556b3dc
commit a55c2b3f88

View File

@@ -615,10 +615,11 @@ class AsyncWebCrawler:
) )
# Log extraction completion # Log extraction completion
self.logger.info( self.logger.url_status(
message="Completed for {url:.50}... | Time: {timing}s", url=_url,
success=bool(html),
timing=time.perf_counter() - t1,
tag="EXTRACT", tag="EXTRACT",
params={"url": _url, "timing": time.perf_counter() - t1},
) )
# Apply HTML formatting if requested # Apply HTML formatting if requested