This commit is contained in:
@@ -532,14 +532,12 @@ class AsyncPlaywrightCrawlerStrategy(AsyncCrawlerStrategy):
|
|||||||
if console_log_type == "error":
|
if console_log_type == "error":
|
||||||
self.logger.error(
|
self.logger.error(
|
||||||
message=f"Console error: {msg}", # Use f-string for variable interpolation
|
message=f"Console error: {msg}", # Use f-string for variable interpolation
|
||||||
tag="CONSOLE",
|
tag="CONSOLE"
|
||||||
params={"msg": msg.text},
|
|
||||||
)
|
)
|
||||||
elif console_log_type == "debug":
|
elif console_log_type == "debug":
|
||||||
self.logger.debug(
|
self.logger.debug(
|
||||||
message=f"Console: {msg}", # Use f-string for variable interpolation
|
message=f"Console: {msg}", # Use f-string for variable interpolation
|
||||||
tag="CONSOLE",
|
tag="CONSOLE"
|
||||||
params={"msg": msg.text},
|
|
||||||
)
|
)
|
||||||
|
|
||||||
page.on("console", log_consol)
|
page.on("console", log_consol)
|
||||||
|
|||||||
Reference in New Issue
Block a user