From 7c8e1e736fb5a8d667df4d4a0f9ecbe1b32c64a4 Mon Sep 17 00:00:00 2001 From: NaiboWang-Alienware Date: Tue, 18 Jul 2023 23:15:37 +0800 Subject: [PATCH] Log Format --- ExecuteStage/easyspider_executestage.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ExecuteStage/easyspider_executestage.py b/ExecuteStage/easyspider_executestage.py index 377d19b..ae7ae2f 100644 --- a/ExecuteStage/easyspider_executestage.py +++ b/ExecuteStage/easyspider_executestage.py @@ -711,7 +711,7 @@ class BrowserThread(Thread): waitElement, ", will continue to execute.") self.print_and_log(e) self.recordLog("Wait element not found") - self.recordLog("Execute node:", node["title"]) + self.recordLog("执行操作/Execute node:", node["title"]) # 根据不同选项执行不同操作 if node["option"] == 0 or node["option"] == 10: # root操作,条件分支操作 for i in node["sequence"]: # 从根节点开始向下读取 @@ -835,6 +835,9 @@ class BrowserThread(Thread): # rt.end() if executeBranchId != 0: self.executeNode(executeBranchId, loopElement, clickPath, index) + else: + self.recordLog( + "判断条件内所有条件分支的条件都不满足/None of the conditions in the judgment condition are met") # 对循环的处理 def loopExecute(self, node, loopValue, clickPath="", index=0):