refactor(logging): update extraction logging to use url_status method
This commit is contained in:
@@ -615,11 +615,12 @@ 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,
|
||||||
tag="EXTRACT",
|
success=bool(html),
|
||||||
params={"url": _url, "timing": time.perf_counter() - t1},
|
timing=time.perf_counter() - t1,
|
||||||
)
|
tag="EXTRACT",
|
||||||
|
)
|
||||||
|
|
||||||
# Apply HTML formatting if requested
|
# Apply HTML formatting if requested
|
||||||
if config.prettiify:
|
if config.prettiify:
|
||||||
|
|||||||
Reference in New Issue
Block a user