add rule count on log (#6467)

* add rule count on log

* add final
This commit is contained in:
hate13 2018-11-28 16:08:38 +08:00 committed by Mingming Qiu
parent d150483fd3
commit f4b49f01ff
1 changed files with 2 additions and 1 deletions

View File

@ -311,7 +311,8 @@ public class SQLMetadataRuleManager implements MetadataRuleManager
)
);
log.info("Polled and found rules for %,d datasource(s)", newRules.size());
final int newRuleCount = newRules.values().stream().mapToInt(List::size).sum();
log.info("Polled and found %,d rule(s) for %,d datasource(s)", newRuleCount, newRules.size());
rules.set(newRules);
failStartTimeMs = 0;