Commit f4ead641 by 赵国君

日志修改

parent 115271fa
...@@ -88,7 +88,9 @@ public class ActionMatcher { ...@@ -88,7 +88,9 @@ public class ActionMatcher {
if (action.getStatus().equals("waiting")){ if (action.getStatus().equals("waiting")){
logWriter.record("-----------------------------------检索到配置条目", 0); logWriter.record("-----------------------------------检索到配置条目", 0);
logWriter.record(userinfo.id2config.get(action.getId()), 1); //logWriter.record(userinfo.id2config.get(action.getId()), 1);
Action action2 = userinfo.id2condition.get(action.getId());
logWriter.record(action2.getConfigName() + " - " + action2.getId(), 1);
//是否有激活操作,如果有激活操作且没有提交表单则判断是否满足条件,如果有激活有提交表单,则放在整个操作完成(getSolution)之后再激活 //是否有激活操作,如果有激活操作且没有提交表单则判断是否满足条件,如果有激活有提交表单,则放在整个操作完成(getSolution)之后再激活
if (action.getFeatureMap().get("activate") != null && !action.getFeatureMap().containsKey("post")) { if (action.getFeatureMap().get("activate") != null && !action.getFeatureMap().containsKey("post")) {
...@@ -163,8 +165,9 @@ public class ActionMatcher { ...@@ -163,8 +165,9 @@ public class ActionMatcher {
logWriter.record("-----------------------------------检索到配置条目", 0); logWriter.record("-----------------------------------检索到配置条目", 0);
logWriter.record(userinfo.id2config.get(action.getId()), 1); //logWriter.record(userinfo.id2config.get(action.getId()), 1);
Action action2 = userinfo.id2condition.get(action.getId());
logWriter.record(action2.getConfigName() + " - " + action2.getId(), 1);
if(higherPriority(action, bestMatch)) if(higherPriority(action, bestMatch))
replaceFlag = true; replaceFlag = true;
...@@ -678,7 +681,21 @@ public class ActionMatcher { ...@@ -678,7 +681,21 @@ public class ActionMatcher {
historyInfoPoint.put("currentAction", next); historyInfoPoint.put("currentAction", next);
historyInfoPoint.put("activeList", historyInfoPoint.get("activeList") + "|" + next); historyInfoPoint.put("activeList", historyInfoPoint.get("activeList") + "|" + next);
logWriter.record("处理完成后的信息点:<br>" + historyInfoPoint.toString(), 1); // logWriter.record("处理完成后的信息点:<br>" + historyInfoPoint.toString(), 1);
StringBuilder sb = new StringBuilder("处理完成后的信息点:<br>");
for(Map.Entry<String, String> entry : historyInfoPoint.entrySet()) {
if(entry.getValue()==null || entry.getValue().equals(""))
continue;
switch (entry.getKey()) {
case "unknownText":
case "unknownTextList":
case "finalUnknownText":
break;
default:
sb.append(entry.getKey() + ":" + entry.getValue() + ", ");
}
}
logWriter.record(sb.toString(), 1);
HashSet<String> skipSet = new HashSet<String>() { HashSet<String> skipSet = new HashSet<String>() {
{ {
......
...@@ -127,8 +127,22 @@ public class BasicBotUtil { ...@@ -127,8 +127,22 @@ public class BasicBotUtil {
curInfoPoint.put(currentAction, i); curInfoPoint.put(currentAction, i);
} }
logWriter.record("historyInfoPoint:" + chatCache.getInfoPoint().toString(), 1); // logWriter.record("historyInfoPoint:" + chatCache.getInfoPoint().toString(), 1);
Map<String, String> _info = chatCache.getInfoPoint();
StringBuilder sb = new StringBuilder("historyInfoPoint:");
for(Map.Entry<String, String> entry : _info.entrySet()) {
if(entry.getValue()==null || entry.getValue().equals(""))
continue;
switch (entry.getKey()) {
case "unknownText":
case "unknownTextList":
case "finalUnknownText":
break;
default:
sb.append(entry.getKey() + ":" + entry.getValue() + ", ");
}
}
logWriter.record(sb.toString(), 1);
return debugFlag; return debugFlag;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment