diff --git a/infra/common/src/main/java/org/apache/shardingsphere/infra/rule/builder/database/DatabaseRulesBuilder.java b/infra/common/src/main/java/org/apache/shardingsphere/infra/rule/builder/database/DatabaseRulesBuilder.java index f446c5e26b8292..312f09f3438d64 100644 --- a/infra/common/src/main/java/org/apache/shardingsphere/infra/rule/builder/database/DatabaseRulesBuilder.java +++ b/infra/common/src/main/java/org/apache/shardingsphere/infra/rule/builder/database/DatabaseRulesBuilder.java @@ -19,6 +19,7 @@ import lombok.AccessLevel; import lombok.NoArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.apache.shardingsphere.infra.config.database.DatabaseConfiguration; import org.apache.shardingsphere.infra.config.rule.RuleConfiguration; import org.apache.shardingsphere.infra.config.rule.checker.RuleConfigurationChecker; @@ -43,6 +44,7 @@ * Database rules builder. */ @NoArgsConstructor(access = AccessLevel.PRIVATE) +@Slf4j public final class DatabaseRulesBuilder { /** @@ -62,6 +64,9 @@ public static Collection build(final String databaseName, fi if (null != configChecker) { configChecker.check(databaseName, entry.getKey(), databaseConfig.getDataSources(), result); } + if (entry.getKey().getClass().getName().contains("SingleRule")) { + log.error("========from build1======"); + } result.add(entry.getValue().build(entry.getKey(), databaseName, databaseConfig.getDataSources(), result, instanceContext)); } return result; @@ -88,6 +93,9 @@ public static Collection build(final String databaseName, fi if (null != configChecker) { configChecker.check(databaseName, entry.getKey(), dataSources, rules); } + if (entry.getKey().getClass().getName().contains("SingleRule")) { + log.error("========from build2======"); + } result.add(entry.getValue().build(entry.getKey(), databaseName, dataSources, rules, instanceContext)); } return result;