Skip to content

Commit

Permalink
update log.
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyeBeFreeman committed Dec 18, 2023
1 parent 021f595 commit 896d79d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ private static boolean matchStringValue(MatchStringType matchType, String actual
long matchV = Long.parseLong(actualValue);
return matchV >= left && matchV <= right;
} catch (NumberFormatException ignore) {
LOG.error("[RuleUtils] matchValue is not a number in RANGE match type, return false");
LOG.error("[RuleUtils] actualValue {} is not a number in RANGE match type, return false",
actualValue);
return false;
}
}
Expand Down Expand Up @@ -217,7 +218,8 @@ private static boolean matchValueByValueType(boolean isMatchSource, String ruleM
// 当匹配的是source,记录请求的 K V
multiEnvRouterParamMap.put(ruleMetaKey, destMetaValue);
} else {
// 当匹配的是 dest 方向时,ruleMetaKey 为 dest 标签的 key,destMetaValue 为实例标签的 value, 流量标签的变量值信息都在 multiEnvRouterParamMap 中
// 当匹配的是 dest 方向时,ruleMetaKey 为 dest 标签的 key,destMetaValue 为实例标签的 value, 流量标签的变量值信息都在
// multiEnvRouterParamMap 中
// 例如, source 标签为 <source-key,source-value>, dest 标签则为 <instance-metadata-key, source-key>
// 因此,在参数场景下,需要根据 dest 中的标签的 value 值信息,反向去查询 source 对应标签的 value
if (!multiEnvRouterParamMap.containsKey(ruleMetaValue.getValue().getValue())) {
Expand Down

0 comments on commit 896d79d

Please sign in to comment.